I am adding a class
.error on click and now after time interval of 2 seconds I want to remove this class, but without page reload/refresh.I used
delay() in jQuery as:
but it's not working.
Then I tried
It's working, but reloading page. I want something that would add, and then remove, class after specific time but do not refresh/reload the page.
Please help, and thank you in advance.