mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 11:54:43 +00:00
toggle ui-disabled class on disable/enable
This commit is contained in:
parent
f7a29fc201
commit
3b8067151e
1 changed files with 2 additions and 0 deletions
|
|
@ -193,10 +193,12 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
|
||||
disable: function(){
|
||||
this.element.attr("disabled",true);
|
||||
this.element.prev('a').addClass('ui-disabled');
|
||||
},
|
||||
|
||||
enable: function(){
|
||||
this.element.attr("disabled",false);
|
||||
this.element.prev('a').removeClass('ui-disabled');
|
||||
}
|
||||
});
|
||||
})( jQuery );
|
||||
|
|
|
|||
Loading…
Reference in a new issue