mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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
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();});
|
a = a.replace(r,function(z,b){return b.toUpperCase();});
|
||||||
if ( typeof v != 'undefined' ) {
|
if ( typeof v != 'undefined' ) {
|
||||||
o[a] = v;
|
o[a] = v;
|
||||||
if ( o.setAttribute ) {
|
if ( o.setAttribute && a != 'disabled' ) {
|
||||||
o.setAttribute(a,v);
|
o.setAttribute(a,v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user