Tag: compatibility mode

jQuery Validation插件,IE7“SCRIPT3:找不到成员”

我有以下内容: Name of Course: Reporting Year: Select option… 2013-2014 2012-2013 2011-2012 2010-2011 $(function(){ jQuery.validator.addMethod(“notEqual”, function(value, element, param) { return this.optional(element) || value !== param; }, “Please select an option”); $(‘form’).validate({ rules:{ ‘reporting_year’: { notEqual: “-1” } } }); }); 每个人最喜欢的浏览器,IE7(IE10 w /兼容性)在控制台中报告以下错误: SCRIPT3:找不到会员。 jquery.js,第2525行,第4行 当然IE8及以上版本工作正常,但我的客户端正在使用IE7。