posts - 82, comments - 269, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

关于jQuery插件Validation的一个Bug

Posted on 2007-10-06 18:52 itspy 阅读(333) 评论(0)  编辑  收藏
不知道从哪个jQuery版本开始就存在这个问题了,反正jQuery1.2.1就与validation 1.1就存在如下bug 就是在IE下无法生成动态的错误信息,我找了好半天终于在其官方网页上找到解决办法了. 在此地址下面有如下一段话 http://bassistance.de/jquery-plugins/jquery-plugin-validation/ I found a fix for IE not showing the error labels with jQuery 1.2 on line 739 change, label = jQuery(”<” + this.settings.errorElement + “>”) to: label = jQuery(”<” + this.settings.errorElement + “/>”) The ending slash allows it to parse the element correctly. Not sure why it’s needed, but it is. If the commenting system screws up on that code change, just add a / to the end of the generated HTML element on line 739.

只有注册用户登录后才能发表评论。


网站导航: