onblur="judgeLandCode()"

function judgeLandCode(){
$.ajax({
type:'post',
dataType:'json',
url:'CSAlandTD/judgeLandCode',
data:{
LandCode:$("#LandCode").val(),//
},
success:function(data ,textStatus, jqXHR){
if(data['result']=='fail'){
$("#LandCode").tips({
side:2,
msg:'该土地编号已存在!',
bg:'#AE81FF',
time:2
});
$("#LandCode").val("");
$("#LandCode").focus();
return false;
}
},
error:function(data ,textStatus, jqXHR){
}
});
}

05-11 13:01