Q:

Prevent unobtrusive validation on specific form

I have a form which I want to use with jQuery unobtrusive validation.  Everything works fine. 
But I also have other forms on that view, like a search form, login form, etc.,  and the plugin attaches to all those forms as well, and I don't want this. 
How can I explicitly state which forms the plugin should attach to, and which not? 

A:

I think you have two choices, as this option does not come out of the box. 

edit the source of the unobtrusive plugin
unbind the validator on the forms that you don't want validation. 

I would go for 1.  and I'm not 100% sure about how you would do 2, although I recall seeing something about it on SO.  
So, if you look into the (unminified) jquery.validate.unobtrusive.js file around line 203 you see this:
var $forms = $(selector)
    .parents("form")
    .andSelf()
    .add($(selector).find("form"))
    .filter("form");

I would change that to
var $forms = $(selector)
    .parents("form.include")
    .andSelf()
    .add($(selector).find("form.include"))
    .filter("form.include");

so this will only validate forms with class 'include'

