I have the following Jquery code:
$(".add").click(function(e) {
$(".saida").addClass("backgroundRed");
});
and the following css:
.backgroundRed {
color: #FFF;
background: #c1272d;
}
It's all right, it changes the color of the div when I change the class but I want it to change the color of the div for 3seconds and then return to the previous color, how do I do that?