jQuery Validation doesn't validate

前端 未结 3 2049
终归单人心
终归单人心 2020-12-04 00:12

I\'m having a problem with my jQuery Validation script.

You can find the code on http://jsfiddle.net/R3wrn/1/

jQuery:

$(document).ready(funct         


        
相关标签:
3条回答
  • 2020-12-04 00:46

    Here is the answer

    http://jsfiddle.net/2nknH/

    0 讨论(0)
  • 2020-12-04 01:04

    jQuery Validate plugin uses the name attribute, not the id. Try changing your inputs' id attribute to name.

    0 讨论(0)
  • 2020-12-04 01:08

    you did not add the css class required on those input, check this updated version: http://jsfiddle.net/R3wrn/2/

    EDIT:

    For rules, seems like what @cloud nix says, add name to those input can solve it: http://jsfiddle.net/R3wrn/7/

    0 讨论(0)
提交回复
热议问题