-
I want to simulate a form submission when the user selects something from a drop-down list, instead of having him/her clicking the submit button.
I'm thinking something like the following:
Code:
<SCRIPT LANGUAGE=vbscript>
<!--
Sub selectMenu_onafterupdate
document.myform.mySumbitButton = clicked
End Sub
-->
</SCRIPT>
Is this the correct way to simulate a click of a button? Will simply simulating the click of the submit button cause the form to be submitted?
Thanks.
dvst8
-
OK...
I've found out that the proper method to invoke is:
Code:
document.myForm.mySubmit.click()
easy :)
one other question though, i want this to fire when the user selects something from the drop down menu. there is no onSelect event for a select list. does anyone know the proper event?
tx
/d8
-
case closed