From 809cc0f8d0c07c2be44942b3010bba1f9ce91be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 4 Nov 2014 08:36:33 -0500 Subject: [PATCH] Selectmenu: Properly parse value from options Fixes #10684 --- ui/selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/selectmenu.js b/ui/selectmenu.js index 6a9607b612f..a2409bde26e 100644 --- a/ui/selectmenu.js +++ b/ui/selectmenu.js @@ -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" )