Skip to main content

Bug Tracker

Side navigation

Ticket #2252: ie6-select-bug.diff


File ie6-select-bug.diff, 0.5 KB (added by zaadjis, January 29, 2008 01:28PM UTC)

Possible patch

Index: jquery/src/core.js
===================================================================
--- jquery/src/core.js	(revision 4556)
+++ jquery/src/core.js	(working copy)
@@ -436,7 +436,7 @@
 					[ value ];
 
 				jQuery( "option", this ).each(function(){
-					this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
+					this.setAttribute('selected', jQuery.inArray( this.value, values ) >= 0 ||
 						jQuery.inArray( this.text, values ) >= 0);
 				});

Download in other formats:

Original Format