mirror of
https://github.com/jquery/jquery.git
synced 2026-01-26 06:28:05 -05:00
Fixed not being able to set the disabled value of an element using .attr(). Ticket #8
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user