Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple submit button in 1 form problem. Help Please

Status
Not open for further replies.

mk2lee1

MIS
Jul 8, 2003
51
US
Hello,
I have multiple submit button, each with unique onClick"" command. However, when I click one submit button, both onClick command is executed.
for instant, below is pseudocode...

<form...>
<input..submit...onClick=&quot;Do A&quot;>
<input...submit...onClick=&quot;Do B&quot;>
</form>

When I click on submit button with onClick value of Do A,
Both Do A and Do B is executed... How can I solve problem?
I want only that button that I click to execute its onClick command.
Please help me on this.. thank you..
 
I can't replicate this problem. Let's see the code. (Maybe over on the Javascript forum, eh.) ;0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top