diff options
Diffstat (limited to 'src/attributes/val.js')
-rw-r--r-- | src/attributes/val.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js index 9999d985b..caf0126d4 100644 --- a/src/attributes/val.js +++ b/src/attributes/val.js @@ -105,8 +105,7 @@ jQuery.extend( { if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup - ( support.optDisabled ? - !option.disabled : option.getAttribute( "disabled" ) === null ) && + !option.disabled && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { |