Commit 157a383d authored by jeresig's avatar jeresig

Bug fix for commit 2c4b2080 - technique wasn't...

Bug fix for commit 2c4b2080 - technique wasn't working as expected in WebKit browsers. Thanks to @jitter for the bug fix.
parent 42aa714f
...@@ -164,7 +164,7 @@ jQuery.fn.extend({ ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment