I have a form with two submit buttons on it. Buttons must be of submit type and I can’t change it.
How can I make jquery not to validate but submit the form when first button is pressed and validate and submit when second button is pressed?
thank you
Ok, I found a solution which is ridiculously easy as usual, the only thing I need to do is to set class=”cancel” to the first button and it’ll skip validation on submit.
Found here http://forum.jquery.com/topic/stop-a-specific-button-calling-validation