Hi Folks,
I have searched the forum looking for a solution to my problem but didn't find one. I have a form with two submit buttons. Both have the same name but have different values.
The reasoning behind this is that in my server side code (ASP) I check the value of the button (btnSubmit) and carry out different tasks depending on which one was clicked.
However, in my client side validation, I also need to find out which button was clicked because it will dictate what validation is carried out. Now I could just change them to standard buttons and call different functions when they are clicked.
At the moment they are both submit buttons and a validation form is called when the form is submitted. How can I check which button was pressed to fire the validation function??
Mighty
I have searched the forum looking for a solution to my problem but didn't find one. I have a form with two submit buttons. Both have the same name but have different values.
The reasoning behind this is that in my server side code (ASP) I check the value of the button (btnSubmit) and carry out different tasks depending on which one was clicked.
However, in my client side validation, I also need to find out which button was clicked because it will dictate what validation is carried out. Now I could just change them to standard buttons and call different functions when they are clicked.
At the moment they are both submit buttons and a validation form is called when the form is submitted. How can I check which button was pressed to fire the validation function??
Mighty