Make sure .val() works after form.reset() in IE. Fixes #2551.
This commit is contained in:
parent
78fc79fad4
commit
43a41ba7ec
2 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue