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:
7eb6a25
)
Fixed not being able to set the disabled value of an element using .attr(). Ticket #8
author
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 02:25:10 +0000
(
02:25
+0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 02:25:10 +0000
(
02:25
+0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
c377f63
..
4f92ce2
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-643,7
+643,7
@@
$.attr = function(o,a,v){
a = a.replace(r,function(z,b){return b.toUpperCase();});
if ( typeof v != 'undefined' ) {
o[a] = v;
- if ( o.setAttribute ) {
+ if ( o.setAttribute && a != 'disabled' ) {
o.setAttribute(a,v);
}
}