X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fattributes.js;h=cb9f2cf5e073e997d6c04a86e9400cfa8b4eedcc;hb=e63fa8beb8e285fe19fc0a1557045b80e3c63c66;hp=1afcf2a8dbbedfc453c9b3bde8b57dcc428a8ffa;hpb=a384d840d609a8ee25b8ca8769a99c33c73b022f;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 1afcf2a..cb9f2cf 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -164,8 +164,9 @@ jQuery.fn.extend({ var option = options[ i ]; // Don't return options that are disabled or in a disabled optgroup - if ( option.selected && option.getAttribute("disabled") === null && + if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { + // Get the specific value for the option value = jQuery(option).val();