travisbrown
Technical User
- Dec 31, 2001
- 1,016
If you use js to submit a form, can you still capture onsubmit events? If I submit using an input button, the form validates; if I user js, it ignores the validation function and submits the form anyways.
Code:
<form name="datepicker" ... onsubmit="MM_validateForm('txtStartDate','','R','txtEndDate','','R');return document.MM_returnValue;">
<a href="javascript:document.datepicker.submit();" id="add" class="buttons"><span>add</span></a>
</form>