addClass()

function addClass(table) { var c = table.config; c.container.find(c.goTo).children().removeClass(‘active’); c.container.find(‘li’).eq(c.page).addClass(‘active’); }

function addClass(table)
{
    var c = table.config;
    c.container.find(c.goTo).children().removeClass('active');
    c.container.find('li').eq(c.page).addClass('active');
}

Share this Tutorial