Posted on 2007-10-06 18:52
itspy 閱讀(343)
評(píng)論(0) 編輯 收藏
不知道從哪個(gè)jQuery版本開(kāi)始就存在這個(gè)問(wèn)題了,反正jQuery1.2.1就與validation 1.1就存在如下bug 就是在IE下無(wú)法生成動(dòng)態(tài)的錯(cuò)誤信息,我找了好半天終于在其官方網(wǎng)頁(yè)上找到解決辦法了. 在此地址下面有如下一段話 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.