$('#form_person_info').validate({ rules: { referee_phone:{ digits:true, rangelength:[11,11],// remote: {// url: "/ajax.php",// type: "post",// data: {// act: "check_referee_phone",// contacts_phone: function () {// return $('#contacts_phone').val();// },// referee_phone: function () {// return $('#referee_phone').val();// }// },// dataFilter: function (json) { //判断控制器返回的内容// data = $.parseJSON(json);// if (data.be_register == "true") {// $('#referee_phone').after("<font color='green' size='4' id='tick'> √</font>");// return true;// }// else {// $("#referee_phone").parent().find("#tick").remove();// return false;// }// }// } }, }, messages: { digits:"必须输入数字", rangelength:"输入长度必须是11位",// referee_phone:{// remote: "该手机号未注册",// }, }, onfocus: true, onkeyup: false, onsubmit: true, });我想让符合digits:true和rangelength:[11,11]条件的手机号后面显示$('#referee_phone').after("<font color='green' size='4' id='tick'> √</font>");请问 代码这个怎么写 ?
添加回答
举报
0/150
提交
取消