私はJQueryコードを持っています:
$("#step1Skip").on("click", function(event){
$('#chooseTheme, #addImages, #addVideo, #finalStep').hide();
$('#addLogo').show();
});
ボタンを使用する場合
<button type="button" id="step1Skip">Skip this step >></button>
これはうまくいきます。しかし、単純なリンクで同じことを試してみると:
<a href="#" id="step1Skip">Skip this step</a>
それは何もしません、単に機能しません。何故ですか?
同時には試していないので、ID の問題ではありません。