jQuery-lightbox插件与jqgrid冲突

时间:2013-07-31 06:35:12

标签: jquery jqgrid lightbox

我正在使用jqgrid和lightbox插件。

    <%-- These are the javascripts conflicts each other --%>
    <script type="text/javascript" src="LightBox/JS/prototype.js"></script>
    <script src="js/jquery-1.5.1.js" type="text/javascript"></script>

当我互相替换这些文件时,jqgrid工作正常,但灯箱不起作用,反之亦然。 请帮助我。

1 个答案:

答案 0 :(得分:0)

最后我通过探索找到了解决方案: 当两个图书馆发生冲突时,官方解决方案是通过致电来解决冲突:

   var k = jQuery.noConflict();
   // Code

您可以从以下链接找到解决方案: prototype confilct with jquery

相关问题