2011-02-11 418 views
2

我經歷了從此錯誤部分已發佈的一些問題,但我找不到真正的匹配。所以我再次尋求SO社區的支持。對象不支持此屬性或方法 - Javascript錯誤

我得到這個錯誤bassistance validate plugindocs)。

CODE

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" 
      } 
     }); 
+0

http://bassistance.de/ – Harish 2011-02-11 10:39:39

+0

http://bassistance.de/jquery-plugins/jquery-plugin-validation/ – 2011-02-11 10:40:22

回答

0

這一錯誤的最可能的原因是,你是不是引用的jQuery JavaScript文件...

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

如果你不已經包含了腳本,那麼對於任何對jQuery框架的調用都會出現此錯誤。

相關問題