toggle classes
comment for SO answer - http://stackoverflow.com/questions/36733258/when-i-click-on-an-image-how-can-i-drop-all-the-other-images-except-the-image-i
by Bhumika107
HTML
<div class='common' id='one'>1</div>
<div>
</div>
<div class='common' id='two'>2</div>
<span></span>
<div class='common' id='three'>3</div>
<div class='common' id='four'>4</div>
CSS
#one{
color: red
}
#two{
color: green
}
#three{
color: black
}
#four{
color: purple
}
JavaScript
$(".common" ).click(function() {
$('.common').not($(this)).toggle('drop')
});