Opened 13 years ago
Closed 12 years ago
#5958 closed bug (invalid)
An JQuery Bug for IE6
Reported by: | raul.fernandez | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4.2 |
Component: | core | Version: | 1.3.2 |
Keywords: | val function | Cc: | |
Blocked by: | Blocking: |
Description
JQuery Team, my name is Raúl Fernández from Chile, I'm web developer, and working on a new website i think found a small bug on "val function" of jquery 1.3.2, where you assign "selected" property to option object, we have problem with that property on ie6:
actual code: jQuery( "option", this ).each(function(){
this.selected = (jQuery.inArray( this.value, values ) >= 0 jQuery.inArray( this.text, values ) >= 0);
});
i replace for new code: if (($.browser.msie)&&($.browser.version<7)){
jQuery( "option", this ).each(function(i){
if (jQuery.inArray( this.value, values ) >= 0
jQuery.inArray( this.text, values ) >= 0)
this.parentNode.selectedIndex = i;
});
}else{
jQuery( "option", this ).each(function(){
this.selected = (jQuery.inArray( this.value, values ) >= 0 jQuery.inArray( this.text, values ) >= 0); });
}
that it all.
i wait for yours comment.
bye god bless you!!
Attachments (1)
Change History (2)
Changed 13 years ago by
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This description does not make any sense and no test case was provided.
the jquery file changed