user1570747
user1570747

Reputation: 21

bypass jquery validation plugin

I am using the jQuery validation. I have two elements in my form that submit the form, one being the submit button, the other a dropdown menu which I need to submit the form so that I can populate another dropdown box. It is essential that my dropdown box submits the form, but I was wondering if I can get it to bypass the validation step of form submission?

Thanks

PS: I've tried class="cancel" which only seems to work on buttons.

Upvotes: 1

Views: 662

Answers (1)

mwld
mwld

Reputation: 225

You can use the built-in ignore statement for this:

$("#yourform").validate({
    ignore: ".element_to_ignore"
});

Here´s the link to the manual: http://docs.jquery.com/Plugins/Validation/validate

Upvotes: 1

Related Questions