$("#btnSad").click(function() {
$(".tgg").each(function () {
if (.tgg.id != "sad") {$(.tgg).hide();
$("#sad").slideToggle("slow");
};
});
What I want:
For each div with class .tgg
If div’s id is not #sad – then hide them,
div #sad – slideToggle (#sad also has class .tgg)
Something like this?