O
Otto Wyss
In a form I've several buttons which submits the form and I'd like to do
different checks in the onsubmit event handler. How can I find out which
button was activated?
<script type="text/javascript">
function checkInput (t) {
if (t. ...) return false;
return true;
}
....
<form name="test" onsubmit="return checkInput(this);" action="...
...
<input type="submit" name="send1" value="Text1">
<input type="submit" name="send2" value="Text2">
O. Wyss
different checks in the onsubmit event handler. How can I find out which
button was activated?
<script type="text/javascript">
function checkInput (t) {
if (t. ...) return false;
return true;
}
....
<form name="test" onsubmit="return checkInput(this);" action="...
...
<input type="submit" name="send1" value="Text1">
<input type="submit" name="send2" value="Text2">
O. Wyss