JQM - Navbar Link Remains Active.

JQM - Navbar Link Remains Active.

Hi, I am using JQM 1.4.5 & jQuery 1.11 and have the following code;
  1. <li><a href="#" id="btnReset" class="ui-disabled" data-icon="custom">Reset</a></li>
This calls a function;
  1. $('#btnReset').bind('click', function(){
  2.       $('#btnReset').addClass('ui-disabled');
  3. }
That works fine but the button remains in an active state (i.e. black but disabled).  How can I alter this to return it to normal state?

Thanks.

    • Topic Participants

    • paul