jquery validator plugin - no validation

后端 未结 1 1556
北恋
北恋 2020-12-12 07:58

I know this suppose to be simple (according to the plugin page anyway)

But I\'m trying to use the plugin with no success, here\'s my form:

相关标签:
1条回答
  • 2020-12-12 08:11

    you need name attributes, as explained in the general guidelines:

    The name attribute is required for input elements, the validation plugin doesn't work without it. Usually name and id attributes should have the same value.

    so markup should be

    <label for="collection">collection:</label> 
    <input type="text" id="collection" name="collection">
    

    etc

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