I’ve wrote a jQuery plugin for a project and it works perfectly in all browsers but IE6-7.
I found the problem, it’s in this line:
return this.each(function(index) { my_code })
.each doesn’t work in IE6-7 properly. This bug was fixed in the latest jQuery versions but I stack with 1.4.2 and can’t update it. How can I rewrite it? Apparently I can’t do this
return for ( var index=0; i<this.length; i++ ) {
or this
for ( var index=0; i<this.length; i++ ) { return
but there should be some way around.
You identified the current jQuery fixed IE 6-7 issues. How about rewriting the
jQuery.eachfunction in your own scripthttp://jsfiddle.net/pxfunc/7q94J/