Declaring jQuery Validate plugin rules — attribute vs. class vs. code

前端 未结 4 1726
眼角桃花
眼角桃花 2020-12-09 15:45

In the examples for the jQuery Validate plugin, I see three different approaches to declaring validation rules:

  • CSS Classes -- e.g.
4条回答
  •  心在旅途
    2020-12-09 16:20

    you can use data-rule-required attribute , please don`t use jquery.metadata.js , i have test in jQuery Validation Plugin 1.11.1

提交回复
热议问题