trouble with adding a class to all "not selected"
for some reason, after a couple of seconds the clicked on div acquires the "fade" class even though in theory it is still a "div-selected" and not a div:not(.div-selected)...what am I missing???
- $(".content-item").click(
- function(){
- $(this).addClass('div-selected', 500);
- $('div:not(.div-selected)').addClass('fade').show('slow');
- $(this).css("z-index","100")
- }
-
- );