mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 15:45:14 -05:00
Make sure .val() works after form.reset() in IE. Fixes #2551.
This commit is contained in:
@@ -198,6 +198,11 @@ jQuery.fn.extend({
|
||||
}
|
||||
}
|
||||
|
||||
// Fixes Bug #2551 -- select.val() broken in IE after form.reset()
|
||||
if ( one && !values.length && options.length ) {
|
||||
return jQuery( options[ index ] ).val();
|
||||
}
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user