diff options
author | Felix Nagel <info@felixnagel.com> | 2013-01-02 19:52:18 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-01-02 19:52:18 +0100 |
commit | c9602857ddeeb8dcbc208be91beb2dee5f08c5a0 (patch) | |
tree | d194874c88e2c7f1e3029ab51a5225f165e390cf | |
parent | 1ba02e9c5fc96bfcdd82e6a72369f54a30a47ecb (diff) | |
download | jquery-ui-c9602857ddeeb8dcbc208be91beb2dee5f08c5a0.tar.gz jquery-ui-c9602857ddeeb8dcbc208be91beb2dee5f08c5a0.zip |
Selectmenu: improve element creation
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index e8b6e0ee6..0b6922412 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -229,7 +229,7 @@ $.widget( "ui.selectmenu", { $.each( items, function( index, item ) { if ( item.optgroup !== currentOptgroup ) { - $( "<li />", { + $( "<li>", { "class": "ui-selectmenu-optgroup" + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? " ui-state-disabled" : "" ), text: item.optgroup }).appendTo( ul ); @@ -240,8 +240,8 @@ $.widget( "ui.selectmenu", { }, _renderItem: function( ul, item ) { - var li = $( "<li />" ).data( "ui-selectmenu-item", item ), - a = $( "<a />", { href: "#" }); + var li = $( "<li>" ).data( "ui-selectmenu-item", item ), + a = $( "<a>", { href: "#" }); if ( item.disabled ) { li.addClass( "ui-state-disabled" ); |