Some minor cleanup of the last commit.
This commit is contained in:
parent
97d468fbf0
commit
d558e9eb6f
2 changed files with 4 additions and 5 deletions
|
@ -164,7 +164,7 @@ jQuery.fn.extend({
|
|||
var option = options[ i ];
|
||||
|
||||
// Don't return options that are disabled or in a disabled optgroup
|
||||
if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue