文件名称:
jquery.validate.js 多个相同name的处理方式
开发工具:
文件大小: 27kb
下载次数: 0
上传时间: 2020-12-11
详细说明: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中: