Home  >  Article  >  Web Front-end  >  IE8 compatibility issue with Jquery.validate.js

IE8 compatibility issue with Jquery.validate.js

高洛峰
高洛峰Original
2016-12-03 09:06:111378browse

Just find

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

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")


Statement:
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