我正在使用jQuery進行驗證碼。我想阻止form.php的提交時data='false'
如何防止我的表單提交後的結果
這裏是我迄今爲止
$(document).ready(function(){
$("#submit").click(function() {
val=$('#vercode').val();
$.ajax({
type:"post",
url:"verify-captcha.php",
data:{'code':val},
success:function(data){
if(data=='false') {
$("#msg").html(data);
}
}
});
});
});
謝謝你的回覆,我得到了解決方案。 – Vinie