problem with JQuery Validate
Hi everyone ...
I was using Jquery Validate Plugin to validate forms in my web app. The situation is that I have many forms which have a class called 'formulario-Ingreso' each ... That is
- <form class='formulario-Ingreso' id='f1' name='f1' method='POST'>
- <!-- Some inputs inside -->
- </form>
- <form class='formulario-Ingreso' id='f2' name='f2' method='POST'>
- <!-- Some inputs inside -->
- </form>
- <form class='formulario-Ingreso' id='f3' name='f3' method='POST'>
- <!-- Some inputs inside -->
- </form>
and the javascript that validate forms is
- $(document).ready(function(){
- $('.formulario-Ingreso').validate();
- })
But I realized, in fact, that only the first form is validated (#f1), and the others aren't.
Why happen this??
Jony