]> source.dussan.org Git - jquery.git/commitdiff
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 fd3e38acec80d174f82cbe44313a646d6ad8065b..608b8e339eb6a024f5a86c323c15fe4b45d288fd 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();