I actually need to do the same with a button now. What would I have to change in this code then? I guess I have to change navBar to something else, but what?
var navBar = this;
var onDelay = function(){
jQuery(navBar).find(".ui-btn-active").removeClass("ui-btn-active");
};
window.setTimeout(onDelay, 500);