From: John Resig Date: Fri, 16 Jun 2006 02:25:10 +0000 (+0000) Subject: Fixed not being able to set the disabled value of an element using .attr(). Ticket #8 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=7ebe209b320b53fcaa3645e77894f3424b0232cb;p=jquery.git Fixed not being able to set the disabled value of an element using .attr(). Ticket #8 --- diff --git a/jquery/jquery.js b/jquery/jquery.js index c377f63..4f92ce2 100644 --- 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); } }