jquery.validate.js 多个相同name的处理方式
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
下载地址
用户评论