My jQuery for html/php form is giving me an error

你离开我真会死。 提交于 2020-01-06 09:08:00

问题


Within the console I am getting an error saying that $(..).validate({ is not a function, but its working on another page? am I missing something or doing something wrong o.0? Anyone who could help much appreciated.

the jQuery script:

$(function() {
    $("#Message").validate({
        rules: {
            Name: {
                required: true,
                minlength: 2,
                maxlength: 15
                },
            Email: {
                required: true,
                email: true
                },
            Message: {
                required: true,
                minlength: 10
                 }
    }});

});

来源:https://stackoverflow.com/questions/31740787/my-jquery-for-html-php-form-is-giving-me-an-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!