惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
博客园 - 叶小钗
V
V2EX
博客园 - Franky
博客园_首页
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
S
SegmentFault 最新的问题
B
Blog RSS Feed
博客园 - 【当耐特】
D
Docker
N
Netflix TechBlog - Medium

博客园 - NetSQL

测试标准1 javaScript数据类型与typeof操作符 写出几种IE6 BUG的解决方法 Axure使用笔记1:如何去除IE中每次“已限制网页运行脚本或ActiveX控件” IIS7 经典模式和集成模式的区别 源代码管理:SVN源代码管理器在ASP.NET VS中的使用注意事项 Android开发常用的一些功能列表 js获取下拉框的选中值和文本值,后台获取用Request["XXXX"]即可 省市区数据库下载,包含34个省级,340个市级,2865个县级 各大电子商务网站的站内搜索比较,因为要做站内搜索,所以前去观摩下 项目开发和管理需要弄清楚的6个问题 做自己网站的访问记录系统,用于推广统计 Powerdesigner中如何生成测试数据 如何进行数据库,比如ORACLE,SQL SERVER的逆向工程,将数据库导入到PowerDesigner中 oracle创建表空间 PowerDesigner中NAME和COMMENT的互相转换,需要执行语句 PowerDesigner中如何生成主键和自增列--Oracle版本 PowerDesigner建立与数据库的连接,以便生成数据库和从数据库生成到PD中。[Oracle 10G版] PowerDesigner中如何生成主键和自增列--SQL SERVER版本
juqery.validate 在IE下失效的问题,无法进行提交验证
NetSQL · 2012-12-03 · via 博客园 - NetSQL

使用的jQuery版本:jquery-1.7.2.min.js

使用的jquery.validate版本:jQuery validation plug-in 1.6

将jquery.validate.min.js中的Add方法,可以搜索"this.currentForm.elements",找到位置,代码如下所示:

return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function() { ! this.name && validator.settings.debug && window.console && console.error("%o has no name assigned", this);
    // 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;
    rulesCache[this.name] = true;
    return true;
});

改成

return $(':input',this.currentForm).not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true});