それぞれ X のイメージを持つ一連の DIV があります。
<div class="hotspot" id="hs1" class="hotspot"><img src="images/xmark.png" alt="x"></div>
私がやりたいことは、それらを非表示にしながらクリック可能にしてから、onclick で画像を表示することです。
私が使用する場合
<div class="hotspot" id="hs1" class="hotspot">
<img class="x" src="images/xmark.png" alt="x">
</div>
.hotpsot img { visibility: hidden;}
その後
$('#hs1').click(function(){
$(this).find(img).show();
});
div はクリックされますが、画像は表示されません。
display:none と children() も試しました