I'm using Bootstrap buttons in Toggable Tab panes and what I find is that on iPhones, iPads, and on Samsung Galaxy S4 after a 'next' button is clicked the button colour changes and the pane changes but the button does not revert back to default colour it stays in hover/active colour. I've tried various tricks mentioned on the web including blur() but so far have not solved it.
$('.btn-primary').focus(function() {
this.blur();
});
window.onblur = function () {
document.activeElement.blur();
};
The code is at: https://jsfiddle.net/qb3uckc8/2/
As well as setting blur() must I also change the css in jquery, or is there a css solution?
It works fine on PCs, just on mobiles it's not.