I’m using the jQuery form validator from http://docs.jquery.com/Plugins/Validation#Validator
How do I sto other input buttons from validating.
input button 1: validates the form
input button 2: must not validate
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In most browsers, the default action for
<button>or<input type="button">is submit, and jQuery Validation validates on submit. You can use<button type="button">instead. Clicking this kind of button does not validate the form.It is recommendable to add
type="submit"for button element even if you want it to submit, because the default type for<button>is different in some browsers.