git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42aa714
)
Bug fix for commit 2c4b20809e5d32e916c479c9b63a6b7528c880ce - technique wasn't workin...
author
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 13:07:54 +0000
(09:07 -0400)
committer
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 13:07:54 +0000
(09:07 -0400)
src/attributes.js
patch
|
blob
|
history
diff --git
a/src/attributes.js
b/src/attributes.js
index
fd3e38a
..
608b8e3
100644
(file)
--- 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();