jquery验证页面上的示例适用于我。我同时包含了jquery (1.6.1)和jquery验证(来自文件头的1.6)脚本文件。在jquery.validation之前包含了Jquery。我已经用firebug验证了脚本已经被找到了,并且我在firebug和Firefox错误控制台中都看不到任何错误。Edit2:
有趣的是,用这段代码替换$(" form ").va
>Uncaught TypeError: undefined is not a functionjQuery('#form-newsletter').yiiactiveformenableAjaxValidation':true,'clientValidation':function(value, messages, attribute) {
我还会检查jquery.yiiactiveform.js是否存在。
discard changes in working directory)
modified: models/event.jserror: Your local changes to the following files would be overwritten by merge: 1 file changed, 3084 insertions(+), 3082 deletions(-)
> git