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
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ jQuery.fn.extend({
|
||||||
var option = options[ i ];
|
var option = options[ i ];
|
||||||
|
|
||||||
// Don't return options that are disabled or in a disabled optgroup
|
// 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" )) ) {
|
(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
|
||||||
// Get the specific value for the option
|
// Get the specific value for the option
|
||||||
value = jQuery(option).val();
|
value = jQuery(option).val();
|
||||||
|
|
Loading…
Reference in a new issue