Fixed not being able to set the disabled value of an element using .attr(). Ticket #8
This commit is contained in:
parent
7eb6a25d5e
commit
7ebe209b32
1 changed files with 1 additions and 1 deletions
2
jquery/jquery.js
vendored
2
jquery/jquery.js
vendored
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue