mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-21 14:44:44 +00:00
use prop instead of attr for enable/disable
This commit is contained in:
parent
93e7afd4b1
commit
5512c8af02
1 changed files with 2 additions and 2 deletions
|
|
@ -150,11 +150,11 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
},
|
||||
|
||||
disable: function(){
|
||||
this.element.attr("disabled",true).parent().addClass("ui-disabled");
|
||||
this.element.prop("disabled",true).parent().addClass("ui-disabled");
|
||||
},
|
||||
|
||||
enable: function(){
|
||||
this.element.attr("disabled",false).parent().removeClass("ui-disabled");
|
||||
this.element.prop("disabled",false).parent().removeClass("ui-disabled");
|
||||
}
|
||||
});
|
||||
})( jQuery );
|
||||
|
|
|
|||
Loading…
Reference in a new issue