I have two forms in a page
<form id="form1">
</form>
<form id="form2">
</form>
in javascript
$('form').validate();
Above only applies validator to form1 not form2. i thought jquery selector applies to all matched elements.
I had to call validate on individual form to apply
Is something wrong with what i am doing/expecting? isn't $('form').validate() should apply to all forms in a page?