jQuery Function Select onChange

I have a jQuery function that performs validation of a form when the submit button is pressed.  However, on this page there is a checkbox that when checked it completely clears the form.  The issue is, that there are two "Submit" Buttons on the page.  The first button is to update the form, the second is to submit the form.  How do I target the the "submit" button to run the validation, and not the update button?  I know this is probably simple but I can't seem to get my head around it.
LVL 7
rgranlundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian TaoSenior Business Solutions ConsultantCommented:
Try making the "update" button a type="button".
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dgrafxCommented:
If I understand you correctly you have 2 buttons - one is Update the other Submit.
You want form validation to occur when you click Submit but not Update.
Is that correct?
If yes then
When you click Submit you call the validation only - do not call form submit from Submit click.
IF validation succeeds the form submit function is called from the validation function.
When you click Update the form submit function is called directly - the validation function is not called.

But I have to ask - why are there 2 submit buttons?
Do you mean that when the form is new then there is a Submit button but after the form is submitted then the button is an Update? There are not 2 buttons visible at the same time (one Update and one Submit). Like is in normal usage?
If that's the case then I understand.

Your description sounds like you have 2 buttons visible at the same time!
That scenario is where I'd wonder why you are doing that???

Anyway - if my above solution doesn't work then could you post some code please.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.