G
Guest
Hi,
I have a aspx form with 2 submit buttons.
For the first button, it submits 2 text box data and no need to do
javascript validation.
For the second button, it submits 5 text box data and has to do javascript
validation to check email, phone, etc.
The form tag has onsubmit="javascript:return CheckInput();"
Since it is not possible to include 2 form tags in one aspx form, the js
validation performs checking when I input data and press the first button.
However, js validation is done only when the 2nd button is pressed.
So, how can I fix that problem or I have to use 2 separate forms?
Thanks
I have a aspx form with 2 submit buttons.
For the first button, it submits 2 text box data and no need to do
javascript validation.
For the second button, it submits 5 text box data and has to do javascript
validation to check email, phone, etc.
The form tag has onsubmit="javascript:return CheckInput();"
Since it is not possible to include 2 form tags in one aspx form, the js
validation performs checking when I input data and press the first button.
However, js validation is done only when the 2nd button is pressed.
So, how can I fix that problem or I have to use 2 separate forms?
Thanks