]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: Properly parse value from options
authorScott González <scott.gonzalez@gmail.com>
Tue, 4 Nov 2014 13:36:33 +0000 (08:36 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 4 Nov 2014 13:37:07 +0000 (08:37 -0500)
Fixes #10684

ui/selectmenu.js

index 6a9607b612f61f269d067b0b3ba0537ec823496c..a2409bde26e83dd1dffd1ce1b86813be690e0bd0 100644 (file)
@@ -618,7 +618,7 @@ return $.widget( "ui.selectmenu", {
                return {
                        element: option,
                        index: index,
-                       value: option.attr( "value" ),
+                       value: option.val(),
                        label: option.text(),
                        optgroup: optgroup.attr( "label" ) || "",
                        disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" )