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?



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

Answer / 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

More jQuery Interview Questions

What is the use of jQuery load method?

0 Answers  


How to check data type of any variable in jquery? : jquery mobile

0 Answers  


Why jQuery is better than JavaScript?

0 Answers  


Define the use jquery.data method?

0 Answers  


Can you use multiple document.ready() function on the same page?

0 Answers  


Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile

0 Answers  


How does jquery mobile theming work? : jquery mobile

0 Answers  


What are selectors in jQuery and how many types of selectors are there?

1 Answers  


What is the difference between $(window).load and $(document).ready function in jquery?

0 Answers  


Explain the difference between body onload() and document.ready() function? : jquery mobile

0 Answers  


Explain the difference between javascript and jquery? : jquery mobile

0 Answers  


What are the advantage of using cdn? : jquery mobile

0 Answers  


Categories