Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery validation addClassRules

When I validate a form with JQuery Validation class rules, only the first input field passed validation and others do not validate.

I have made an example in jsfiddle that can be seen here below: http://jsfiddle.net/GrhBr/37/

If I do it the normal way it works, see example below: http://jsfiddle.net/WNMUL/29/

Greetz Chiel

like image 772
Chiel Avatar asked Aug 15 '26 17:08

Chiel


1 Answers

Add name attribute to each field and it'll work fine.

http://jsfiddle.net/GrhBr/46/

like image 91
Vikk Avatar answered Aug 17 '26 08:08

Vikk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!