D
dpodkuik
I have a simple function that does submit for me:
<script language="javascript" type="text/javascript">
function sort()
{
//selected item value from the drop down list
var dud=window.document.statusForm.sortByStaff.value;
window.document.statusForm.action="status.cfm?sortBy="+dud;
window.document.statusForm.method="post";
window.document.statusForm.submit();
}
</script>
I have several drop down boxes (<select> element) in which i set
onclick="sort()". Works perfectly in Firefox, and doesn't work in IE
and Safari. Also this same function works fine in all 3 if appended to
a button instead of select element. What am I doing wrong?
<script language="javascript" type="text/javascript">
function sort()
{
//selected item value from the drop down list
var dud=window.document.statusForm.sortByStaff.value;
window.document.statusForm.action="status.cfm?sortBy="+dud;
window.document.statusForm.method="post";
window.document.statusForm.submit();
}
</script>
I have several drop down boxes (<select> element) in which i set
onclick="sort()". Works perfectly in Firefox, and doesn't work in IE
and Safari. Also this same function works fine in all 3 if appended to
a button instead of select element. What am I doing wrong?