Commit 7ebe209b authored by John Resig's avatar John Resig

Fixed not being able to set the disabled value of an element using .attr(). Ticket #8

parent 7eb6a25d
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment