I want to validate complete content of my form except all the inputs that are in a specific div,
lets say <div class="noValid"> for example.
So what I want to do is something like $("myForm").valid() that will execute jQuery validation on all the form inputs except the ones that are in my specific div.
Can you tell me how to exclude this specific div from the global form selector?
Thanks
You could pass a selector in the
ignoreoption tovalidate():From there on,
$("#myForm").valid()will ignore the form controls inside#yourDiv.