Remove class after delay in jQuery

Submitted by:Jhon Jhon

Date added:04 January, 2014

Category:jQuery

Code snippet to remove class after delay in jQuery.

Tags: jquery class , remove class

Code Snippet:

var link = $('#link');
link.addClass('current');
setTimeout(function() {
link.removeClass('current');
}, 3000);
 
 

Comments