Bug fix for commit 2c4b20809e5d32e916c479c9b63a6b7528c880ce - technique wasn't workin...
authorjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 13:07:54 +0000 (09:07 -0400)
committerjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 13:07:54 +0000 (09:07 -0400)
src/attributes.js

index fd3e38a..608b8e3 100644 (file)
@@ -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();