I have this code where it executes on every page load.:
function setActiveNavBtn(btn)
{
var $btn = Appery(btn);
var $navGrp = $('#mapScreen_KizunoNavButtons_15_mainNavBar');
$navGrp.find('a').removeClass('ui-btn-active');
Code: Select all
$btn.addClass('ui-btn-active');
}
the btn is the name of the button in the NavBar. But when I execute it, it doesn't set the btn as active.