jquery formvalidator ajax验证表单

ajaxValidator({  
    type : "get",  
    url : "",  
    data :"m=member&c=index&a=public_checknickname_ajax",  
    datatype : "html",  
    async:'false',  
    success : function(data){  
        if( data == "1" ) {  
            return true;  
        } else {  
            return false;  
        }  
    },  
    buttons: $("#dosubmit"),  
    onerror : "昵称已经存在",  
    onwait : "请稍候..."  
})  

 

你可能感兴趣的:(formvalidator)