简体   繁体   中英

Conflicting Scripts (javascript and jquery)

<script type="text/javascript" src="js/prototype.lite.js"></script>


<script type="text/javascript" src="js/jquery.csvToTable.js"></script>
<script>
    $(function() {
        $('#CSVTable_Pach').CSVToTable... 
    });

The script on top is part of a lightbox feature, however it is not allowing a table to display.

How can i resolve the conflict between these scripts?

link to the site

You may be having a conflict because both libraries use the $ shortcut. Look into the noconflict feature of jQuery or the equivalent of prototype.

You can read more here: jQuery ... Avoiding Conflicts with Other Libraries

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM