日期:2014-05-17 浏览次数:20480 次
<form name="ctl00" runat="server" method="post" action="User.ashx?action=1" onsubmit="return checkCode(this);"这是<form>
function checkCode() {
var t = 0;
if ($("#txtUserName").val() == "") {
alert('用户名不能为空!!');
t = 1;
return false;
}
if ($("#txtPwd").val() == "") {
alert('密码不能为空!!');
t = 1;
return false;
}
if ($("#txtEmail").val() == "") {
alert('邮箱不能为空!!');
t = 1;
return false;
}
if ($("#txtMobile").val() == "") {
alert('手机不能为空!!');
t = 1;
return false;
}
if ($("#txtVerifycode").val() == "") {
alert('验证码不能为空!!');
t = 1;
return false;
}
$.ajax({
url: "User.ashx",
data: { action: "checkCode", node: $("#txtVerifycode").val() },
dataType: "html",
type: "POST",
&n