From 157a383dae5335ef1056d3818d7dd70ac81c25a7 Mon Sep 17 00:00:00 2001 From: jeresig Date: Mon, 27 Sep 2010 09:07:54 -0400 Subject: [PATCH] Bug fix for commit 2c4b20809e5d32e916c479c9b63a6b7528c880ce - technique wasn't working as expected in WebKit browsers. Thanks to @jitter for the bug fix. --- src/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index fd3e38a..608b8e3 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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(); -- 1.7.10.4