Identify a submit button!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Identify a submit button!

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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()">
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply