日期:2014-05-16 浏览次数:20679 次
//同步检验真实姓名(realName)
function checkrealName(){
var flag = false;
var realName = $("#realName").val().strip();
alert(realName);
if("" == realName || realName == null){
$("#realNameMsg").text("姓名不能为空!");
return;
}else{
var b = checkRealName();
if(b == true){
//var realName = $("#realName").val();
$.ajax({
url:"../account/accountValid.action",
data:"realName="+realName,
type:"post",
async:"false",
dateType:"json",
success:function(data){
if(data.okAccount){
alert("+++++++");
flag = false;
$("#realNameMsg").text("姓名已重复,请重新录入!").show();
//return flag;
}else{
alert("~~~~~~");
flag = true;
alert("flag:"+flag)