<div class="axb"> <span id="tipStep1" class="fl" >第一步顯示</span> <span id="tipStep2" class="fl" style="display:none">第二部顯示</span><!-- 第一步先是隱藏的 --> </div>
<div id="axbStep2" class="bottom" style="display:none;margin-top:60px;"></div>
<a class="btn confirm" onclick="registStep2();">下一步</a>
function axbStep2(){
var userPhone = ("#userPhone").val(); if(userPhone==""){("#userPhone").val(); if(userPhone==""){("#checkPhoneMsg").html("請輸入手機號碼");
("#checkPhoneMsg").css("color","orange"); return ; } //驗證都經過 if(checkphone){ checkSMSCodeJs(); } if(checkphone && checkCaptcha()){("#checkPhoneMsg").css("color","orange"); return ; } //驗證都經過 if(checkphone){ checkSMSCodeJs(); } if(checkphone && checkCaptcha()){("#registStep1").hide(); //切換效果
("#registStep2").show(); //("#registStep2").show(); //("#tipStep1").hide();
$("#tipStep2").show();
}
}css