Add a feature test for options inside a disabled select. Follow-up to 157a383dae
.
This commit is contained in:
parent
a384d840d6
commit
97d468fbf0
2 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue