私はクイズをしていますが、次のボタンが表示されたときにユーザーが質問に答えるときだけですが、質問に答えられないときはそのボタンを隠すことはできません。クイズの次のボタンが表示されます
HTML:
<div id="navContent">
<button type="image" class="hide"></button>
</div>
JS:
if(this.id==rnd) {
$('button.hide').removeClass('hide');
}
とCSS:
.button {
position:relative;
background-image:url(img/bouton.png);
border:none;
width:111px;
height:202px;
color:white;
}
.button:hover {
background-image:url(img/bouton1.png);
width:111px;
height:202px;
}
.hide { dispaly: none; }
あなた 'ディスプレイ:.hide'クラス'でNONE'がスペルミスれます! –