SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
function removeClassDelayed(jqObj, c, to) { setTimeout(function() { jqObj.removeClass(c); }, to); } removeClassDelayed($("#div"), "error", 1000);