Disable jQuery mobile button
问题 I am trying to disable this button <a data-role="button" id="next" data-icon="arrow-r" >Next</a> The click event should not fire and the button UI should also reflect a button disabled state. I have tried the following $("#next").attr('disabled',true); $("#next").attr("disabled", "disabled"); $("#next").button('disable'); $("#next").button().button('disable'); None seems to deal with the 2 issues at once. 回答1: Working example: http://jsfiddle.net/Gajotres/YFMsR/ Unfortunately only INPUT