JQuery validate plugin - can't validate classes

前端 未结 3 1629
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 07:10

I\'m trying to use the jQuery validate plugin to validate classes instead of ID\'s. Despite the many threads which seem close to answering this issue - I can\'t get any of t

3条回答
  •  甜味超标
    2021-01-03 07:51

    You need to specify a name attribute on each input element for validator to pick it up:

    Here's a working example: http://jsfiddle.net/Nbcj9/

提交回复
热议问题