Fixed #1074 where .html() was incorrectly changing the selected value of an option.
[jquery.git] / src / core.js
index d27dcb9..36d736c 100644 (file)
@@ -932,7 +932,7 @@ jQuery.extend({
                                var wrap =
                                        // option or optgroup
                                        !tags.indexOf("<opt") &&
-                                       [ 1, "<select>", "</select>" ] ||
+                                       [ 1, "<select multiple='multiple'>", "</select>" ] ||
                                        
                                        !tags.indexOf("<leg") &&
                                        [ 1, "<fieldset>", "</fieldset>" ] ||