I've looked at other examples but can't find one like this:
What I'm trying to do: Have the '.Wrapper' element change background color when the element '.box1' is clicked, then after delay(x) have the .Wrapper revert to its prior state. (The background color is added from a class called '.clicked1')
The code I have right now adds '.clicked1', but I can't figure out how to remove the class via delay.
Any help?
$(function () {
$('.box1').click(function () {
$('.Wrapper').addClass('clicked1')
});
});