Skip to content

Commit

Permalink
toggle ui-disabled class on disable/enable
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Nov 9, 2010
1 parent f7a29fc commit 3b80671
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/jquery.mobile.forms.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 3b80671

Please sign in to comment.