最後の入力をチェックするときにdivid="FormStep"を非表示にする必要があります。
私のページでは、次のHTMLコードを使用しています。
<div id="FormStep">
<input type="text" name="test1" id="test1" class="validate" />
<div id="Checktest1Input"></div>
<input type="text" name="test2" id="test2" class="validate" />
<div id="Checktest2Input"></div>
<input type="text" name="test3" id="test3" class="validate" />
<div id="Checktest3Input"></div>
<input type="button" id="Step" value="Send"/>
</div>
ページでの検証には、次のJSコードを使用します。
$('#Step').on('click',function(){
$('.validate').each(function(){
if ($(this).val().length == 0){
$('#Check'+this.id+'Input').html('false');
return false;
} else {
$('#Check'+this.id+'Input').html('true');
}
});
});
最後の入力を確認した後に$('#Step').hide();
このコードが実行するコードを追加する方法を教えてください。$('#Step').hide();