FairyBusiness
asked on
How to find out which submit button was clicked when you have multiple submit buttons?
Hi, I have a form with 3 submit buttons. I need to know which one was clicked though, so that my form validation function knows which part of the form to validate. Does anyone know how to determine which submit button as clicked in a form?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
correction, I have this in my code:
$("#userForm").submit(function () {
Well you said you had multiple buttons.
Can you post your full form code please.
Can you post your full form code please.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for FairyBusiness's comment http:/Q_27521990.html#37383361
for the following reason:
I got it working, thanks.<br />I just put the .submit function inside of the .click function.
Accepted answer: 0 points for FairyBusiness's comment http:/Q_27521990.html#37383361
for the following reason:
I got it working, thanks.<br />I just put the .submit function inside of the .click function.
ASKER
I didn't mean to delete this question. I wanted to accept a solution.
ASKER
Open in new window