我遇到了一些已经在此错误部分中发布的问题,但找不到真正的匹配项。因此,我再次寻求SO社区的支持。

我收到bassistance validate plugindocs)的错误。



jQuery("#formTest").validate({
            rules: {
                event_title: "required",
                calendar1: "required",
                calendar2: "required",
                event_venue: "required",
                event_des: "required",
                event_access: "required",
                event_email: {required: true,email: true},
                imagesrc:"required"
            },
            messages: {
                event_title: "Please enter the event title",
                calendar1: "Please select the start date",
                calendar2: "Please select the end date",
                event_venue: "Please enter the event venue",
                event_des: "Please enter the event description",
                event_access: "Please choose one access option",
                event_email:"Please enter valid email address",
                imagesrc:"Please upload image"
            }
        });

最佳答案

此错误的最可能原因是您未引用jQuery javascript文件...

<script type="text/javascript" src="jquery.min.js"></script>


如果不包含脚本,则对jQuery框架的任何调用都会出现此错误。

09-25 18:08