$('.sn').css({'z-index':'-1000'});
(グループ全体を非表示) クラス全体のロード時に、そのクラスから動的に要素をクリックして css $('#item1').css({'z-index':'1000'});
(グループから 1 つだけを表示) を表示または適用したいのですが、これは起こりません。hide() & show() メソッドを使用すると、正常に動作します。
//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'});
}
});
//オンロード..
$('.sn').css({'z-index':'-1000'});
$('.notes').css({'z-index':'-1000'});