From 09c0cf995b84e0cff6d86c9f63bdad2b0440466a Mon Sep 17 00:00:00 2001 From: timmywil Date: Sat, 7 May 2011 11:48:42 -0400 Subject: [PATCH] Global found in valHook for select(get) --- src/attributes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index 86f2d74a..9326f69d 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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";