For example I have 3 forms in a page with the same names. How can I validate all these forms with one validate method?
<form id="formID">
<input name="nick">
<input type="submit">
</form>
<form id="formID">
<input name="nick">
<input type="submit">
</form>
<form id="formID">
<input name="nick">
<input type="submit">
</form>
I want to validate only the submitted form not all at the same time.
$('#formID').validate({
})
My solution does not work. I also find I can't add different IDs because these forms are in a PHP loop and it must have same ID.