Ilanus
Ilanus

Reputation: 6928

2 Different jQuery in the same Page

I have jQuery file that is reqiured for the theme Functions..

<script src="/jquery/jquery.js"></script>

The other jQuery file is needed to handle table operations:

<script src="/js/jquery-1.11.1.min.js"></script>

Loading the jquery first will allow the theme functions to work, loading the 1.11.1 first will allow the table functions to work. using noConflict Does not help, loading both of the files is not helping. Please Advise

Upvotes: 1

Views: 180

Answers (1)

atmd
atmd

Reputation: 7490

When jquery moved from v1.x to v2.x they removed a lot of methods as well as support for older browsers. it's likley that your table code requires methods removed from version 2.x

you should be able to load jquery v2.x and use jqueries migrate plugin to handle any missing functionality, rather then have to load two versions of jquery and deal with the noConflict issue.

you can get the jquery migrate plugin here

Upvotes: 2

Related Questions