X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fattributes.js;h=599721055a1fb96b9250eaf719ce21a602f8d9fa;hb=3663836b0180f3a73d96ec234d5d7010e5652a4b;hp=d37400a688e65964ff63730ffac8fead20a28307;hpb=8e59a99e0ade75dec434f246f52e8b3f7393f359;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; }