$('.sn').css({'z-index':'-1000'});
(hiding the entire group) upon loading the whole class. From that class, I want to either show or apply css $('#item1').css({'z-index':'1000'});
(showing only one from the group) dynamically when clicking on an element, but this is not working as expected. Can anyone please assist me?
When using hide() and show() methods, everything works fine.
//on click ..
$(document).on('click','#slider1prev',function(){
selected = selected-1;
if(my_text != ""){
$('#noteImage'+selected).css({'z-index':'1000'});
$('#noteText'+selected).css({'z-index':'1000'});
}
});
//onload..
$('.sn').css({'z-index':'-1000'});
$('.notes').css({'z-index':'-1000'});