X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fattributes.js;h=599721055a1fb96b9250eaf719ce21a602f8d9fa;hb=43a41ba7ecef732b48dcfc930fa9df8835fc4944;hp=d37400a688e65964ff63730ffac8fead20a28307;hpb=78fc79fad47ce2991c0a7148b65acd7221223eb9;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index d37400a..5997210 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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; }