$(document).ready(function(){
$.formValidator.initConfig({
formid:"form1",
submitonce:true,
onerror:function(msg){
alert(msg);
},
onsuccess:function(msg){
//alert("$('#form1').formSerialize():"+$('#form1').formSerialize());
$.post('../reg.aspx?request=ajax&randomid='+Math.random(),$('#form1').formSerialize(),function (msg) {
alert(msg);
if(msg=="注册成功!"){
$('#form1').resetForm();
}
});
return false;
}
});
$("#userAccount").formValidator({onshow:"请输入帐户名",onfocus:"用户名为6-10个字符",oncorrect:"。。。。。。。。。。。。。。。。。。。。。
-------------------------------------------------------------
if(msg=="注册成功!") 这个确认框,如何点击时跳转到一个新的IE页面,而不是还停留在这个注册页。
|