mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Bug fix for commit 2c4b20809e
- technique wasn't working as expected in WebKit browsers. Thanks to @jitter for the bug fix.
This commit is contained in:
parent
42aa714fb7
commit
157a383dae
@ -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 && !option.disabled &&
|
||||
if ( option.selected && option.getAttribute("disabled") === null &&
|
||||
(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
|
||||
// Get the specific value for the option
|
||||
value = jQuery(option).val();
|
||||
|
Loading…
Reference in New Issue
Block a user