Here is what I have so far:

JavaScript:
$(document).ready(function() {
$(".thumb_wrapper").click(function() {
$(this).addClass("active");
});
});
So this works, it adds a class, but I want only one element to be active at all times. Therefore, when I click on an element and becomes active, the next element that I click should be new active, and delete the class on the previous one.
It makes sense? How can I do something like this?
Thank!
source
share