Remove class after delay in jQuery

    [javascript]
    var link = $(‘#link’);
    link.addClass(‘current’);
    setTimeout(function() {
    link.removeClass(‘current’);
    }, 3000);
    [/javascript]

    One Reply to Remove class after delay in jQuery

    1. suresh says:

      Really Helpful…

    Leave a Reply