Page 1 of 1

Identify a submit button!

Posted: Thu Dec 06, 2007 6:11 am
by pcoder
Hi all,
I have two submit buttons on my form.I have to call different function with different submit buttons.
How can i identify individual button using Javascript?

Thanks

Posted: Thu Dec 06, 2007 6:38 am
by VladSun
I'm not sure what exactly you are asking ...

Suggestion 1: viewtopic.php?t=76401

Suggestion 2:

Code: Select all

<input type="submit" onclick="function1()">
<input type="submit" onclick="function2()">