Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7090297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:01:58+00:00 2026-05-28T08:01:58+00:00

How do I handle having two separate jQuery libraries? I need both of them,

  • 0

How do I handle having two separate jQuery libraries? I need both of them, but including both results in a conflict, and only one’s functions will work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:01:59+00:00Added an answer on May 28, 2026 at 8:01 am

    It depends. You can actually have both of them active in the page at the same time, but only one of them can have the $ symbol, and only one of them can have the jQuery symbol. But technically, you can have more than one on a page:

    <script src="jquery-1.5.2.js"></script>
    <script>var $j15 = jQuery.noConflict(true);</script>
    <script src="jquery-1.7.1.js"></script>
    <script>
        // Here, $ = jQuery = jQuery 1.7.1
        // $j15 = jQuery 1.5.2
    </script>
    

    Note that a well-authored jQuery plug-in will work even in that environment, e.g.:

    <script src="jquery-1.5.2.js"></script>
    <script src="plugin-requiring-1.5.2.js"></script>
    <script>var $j15 = jQuery.noConflict(true);</script>
    <script src="jquery-1.7.1.js"></script>
    <script>
        // Here, $ = jQuery = jQuery 1.7.1
        // $j15 = jQuery 1.5.2
        $j15("selector").pluginRequiring152(...);
    </script>
    

    …because a well-authored plug-in looks like this:

    (function($) {
        $.fn.pluginRequiring152 = ...;
    })(jQuery);
    

    …and so will use whatever is jQuery at the point you include it, without breaking if you later fire off noConflict(true).

    Is it a good idea? Almost certainly not. Best to resolve whatever the issues are that make you need more than one version of jQuery, and only include the latest you’ve tested with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the best way to handle having two templates (or should it be one,
Internet explorer seems to not handle having two divs both with different semi-transparent backgrounds.
I have two separate files that one is server-side JS. The other one is
I have two separate advancedDataGrid instances (let's call them A and B). What I'd
Having the window handle for an open application, I'm able to use the GetWindowText
I'm having problems deciding on what is the best way is to handle and
For some reason I am having troubles with a DBI handle. Basically what happened
I am using Autofac 2.1.12 to handle my dependency injection, and am having trouble
I'm trying to handle Winsock_Connect event (Actually I need it in Excel macro) using
I'm building a class or two based on StdRegProv to handle Windows Registry via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.