Javascript validation based on submit button pressed
Posted: Wed Dec 28, 2005 1:53 pm
If a form has two submit buttons and you submit the form how can you tell which button was pressed in javascript? My validation rules are different depending on which button is pressed and I am using OnSubmit in the form tag to call the javascript.
The way I do it now is call the javascript from the button and submit the form in the javascript. I wanted to try something different and see if I can tell which button is being pressed when I do an onsubmit from the form tag.
TIA
The way I do it now is call the javascript from the button and submit the form in the javascript. I wanted to try something different and see if I can tell which button is being pressed when I do an onsubmit from the form tag.
TIA