]> source.dussan.org Git - jquery.git/commitdiff
Global found in valHook for select(get)
authortimmywil <tim.willison@thisismedium.com>
Sat, 7 May 2011 15:48:42 +0000 (11:48 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sat, 7 May 2011 15:48:42 +0000 (11:48 -0400)
src/attributes.js

index 86f2d74a7a43aed97bfc1fc40b6a0068a032b955..9326f69db61cdd5fec594adf21bb34f0285f7e61 100644 (file)
@@ -219,7 +219,8 @@ jQuery.extend({
                },
                select: {
                        get: function( elem ) {
-                               var index = elem.selectedIndex,
+                               var value,
+                                       index = elem.selectedIndex,
                                        values = [],
                                        options = elem.options,
                                        one = elem.type === "select-one";