1. 首页
  2. 跨平台
  3. PhoneGap
  4. jquery.validate.js 多个相同name的处理方式

jquery.validate.js 多个相同name的处理方式

上传者: 2020-12-13 10:12:58上传 PDF文件 27.37KB 热度 13次
1、将引入的插件:jquery.validate.js 第484行的代码注释: // select only the first element for each name, and only those with rules specified //if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) { return false; } 2、页面中需要验证的输入框必须加上不同的id。 如:html中: <form> <input type='text' name='n
下载地址
用户评论