我使用 jsTree 来建立树,同时也用了 jquery.validate.js 做客户端验证。但发现,当 jsTree 一旦引入 jquery.validate.js 后,jsTree 工作就不正常了。
google 了一下,发现问题是:
jquery.validate.js 的一个方法:.delegate(type, delegate, handler)
和 jquery 的一个方法:.delegate( selector, eventType, handler )
冲突了。而 jsTree 是依赖于 jQuery 的这个方法的。所以导致 jsTree 无法正常工作。
解决办法是:升级 jquery.validate.js,当前最新版本 jquery.validate.js 是1.7,而版本 1.6 以前的都会有这个问题,升级后,问题解决。
jquery.validate.js 的下载地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation/
详细内容请参考:http://stackoverflow.com/questions/3079425/jstree-conflicts-with-jquery-validate
分享到:
相关推荐
jquery.validate.1.9.0.min.js jquery.validate.1.12.0.min.js jquery.validate.1.13.1.min.js jquery.validate.1.16.0.min.js jquery.validate.1.14.0.min.js jquery.validate.1.15.1.min.js jquery.validate....
jquery.validate.js jquery.validate.js
jquery.validate.min.js 1.16.0插件,jquery验证
微软的jquery.validate.unobtrusive.js验证插件,可以用来验证单选和多选框的.
jquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.jsjquery.validate.js...
jquery 验证表单1.8版本,附加常用地址 https://docs.microsoft.com/en-us/aspnet/ajax/cdn/jquery-validate/cdnjqueryvalidate18
jquery.validate.extend.js
js插件 jquery-1.11.1.min.js jquery.validate.min.js
jquery.validate.js 和 帮助文档.rar
jquery.validate.js jquery.metadata.js jquery.autocomplete.js的打包合集,这些jquery的扩展包非常好用,希望对需要的童鞋有用
jquery.validate插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来...
jquery.validate.js表单验证 jquery.validate.messages_cn.js 表单验证中文提示
jquery.validate.js表单验证.pdf
jQuery.validate.js+API中文 jquery-validation-1.8.1.zip
jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来...