Skip to content
Permalink
Browse files

Fixed not being able to set the disabled value of an element using .a…

…ttr(). Ticket #8
  • Loading branch information
jeresig committed Jun 16, 2006
1 parent 7eb6a25 commit 7ebe209b320b53fcaa3645e77894f3424b0232cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
}

0 comments on commit 7ebe209

Please sign in to comment.
You can’t perform that action at this time.