This is my first question on stackoverflow and I hope my problem description is enough precise. I would like to add a class to some elements and then use those elements to trigger. But the following code (just an example) doesn't work. In the inspector I can see the class, but there is no reaction on click. Is there an easy solution?
$(".T").click(function(){
$(this).addClass("current");
});
$(".current").click(function(){
$("#Deko").hide();
});