用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1724|回复: 0
收起左侧

[版本 2.x] jquery.validate验证用户名是否存在 url怎么写

[复制链接]
发表于 2015-6-26 12:21:24 | 显示全部楼层 |阅读模式
验证代码:

uname: {
                required: true,
                rangelength:[6,16],
                remote: {
                    type: "post",
                    url: "<?=  site_url('front/user/yanzheng_yonghu')?>",
                              
    dataType: "json",           //接受数据格式   
    data: {                     //要传递的数据
        uname: function() {
            return $("#uname").val();
        }
    }

怎么我这里老是不行,url就没验证,用过的大神帮忙看下

本版积分规则