Home > Web Front-end > JS Tutorial > body text

IE8 compatibility issue with Jquery.validate.js

高洛峰
Release: 2016-12-03 09:06:11
Original
1414 people have browsed it

Just find

return $([]).add(this.currentForm.elements).filter(":input")
Copy after login

in the jquery.validate.js file

near line 446 and replace it with

var listeElements = new Array();
 for(var k=0;k<this.currentForm.elements.length;k++){
 listeElements[k] = this.currentForm.elements[k];
 }
 return $([]).add(listeElements).filter(":input")
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template