1
神秘错误我有这样小的代码:与jQuery验证和IE7
alert(1);
$('input[name^="Quantity_"]').each(function() {
alert(2);
$(this).rules("add", { required: true, digits: true });
alert(3);
});
alert(4);
在浏览器或Firefox,我看到警报1,2,3和4,但与IE7,我只看到警报1 & 2.为什么脚本在规则()上失败? 。
IE7不会在页面
EDIT 1报告错误: JavaScript的失败就行$。数据(element.form, '验证')设置;在jquery.validation.js脚本中使用。 Element.form
不为空,但$.data(element.form, 'validator')
未定义。
谢谢
任何方式,你可以在像http://jsfiddle.net这样的网站上重现这一点? – 2011-06-12 23:03:43