Side navigation
#5958 closed bug (invalid)
Opened January 27, 2010 06:22PM UTC
Closed October 06, 2010 01:28AM UTC
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 (1)
Changed October 06, 2010 01:28AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
This description does not make any sense and no test case was provided.