Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In what situation you would use multiple version of jQuery and how would you include them?

Answer Posted / chaitanya

Well, it is quite possible that the jQuery plugins which are used are dependent on older version but for your own jQuery code, you would like to use newer version. So because of this dependency, multiple version of jQuery may required sometimes on single page.

Below code shows how to include multiple version of jQuery.

Hide Copy Code

<script type='text/javascript' src='js/jquery_1.9.1.min.js'></script>

<script type='text/javascript'>

var $jq = jQuery.noConflict();

</script>

<script type='text/javascript' src='js/jquery_1.7.2.min.js'></script>

By this way, for your own jQuery code use "$jq", instead of "$" as "$jq" refers to jQuery 1.9.1, where "$" refers to 1.7.2.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you apply a style on an element using jQuery?

815


What does dollar sign ($) me in jquery?

886


Explain deferred and promise object in jquery? : jquery mobile

732


Please tell us that is jquery knockkout intended to compete with jquery or prototype or work with it?

708


How can related code be encapsulated?

796


How we can modify the css class in jquery?

738


Tell me what are the slow selectors in jquery? : jquery mobile

715


What to do to select element having a particular class (".selected")? : jquery mobile

762


What is the difference between size and length of jQuery?

796


What is normally not included in a cloned copy? : jQuery Mobile

757


Tell me do I need to add the jquery file both at the master page and content page as well?

717


Is jquery code exicuted on the clientside, or serverside?

712


What is $() in jquery?

785


Explain the term method chaining? : jQuery Mobile

706


What is slice() method in jquery?

762