Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to implement javascript to validate my html forms. And its not working, the code I am using to submit the form is below.
<form method="post" onsubmit="javascript:validateForm(); action="clsConsumerStatistics.ASP?WCI=tConsumerStatistics&WCE=Event1&WCU">
The code goes through and processes the event WCE=Event1, but it does not process the javascript, javascript:validateForm(). I know that my javascript function is correct. I think there is something wrong with the way I wrote the code to submit the form. Does anyone know how to process the javascript first before processing the webclass event????
<form method="post" onsubmit="javascript:validateForm(); action="clsConsumerStatistics.ASP?WCI=tConsumerStatistics&WCE=Event1&WCU">
The code goes through and processes the event WCE=Event1, but it does not process the javascript, javascript:validateForm(). I know that my javascript function is correct. I think there is something wrong with the way I wrote the code to submit the form. Does anyone know how to process the javascript first before processing the webclass event????