To start with your button, send #, it does not translate the link to another page, but creates some unwanted scrolling. You should avoid such actions.
$('#showScarringReports').click(function(ev){ ev.preventDefault(); });
After you want the active state to remain, you can disable the event handler, which will force it to switch from active to what it was. So again with the first as an example.
$('#showScarringReports').unbind('mouseout keyup mouseup hover');
Once it is active, it will remain active to remove the active state, and then simply remove the ui-state-hover class from the button.
source
share