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
How to always reference latest version of jquery?
How to get attributes of an element using jQuery?
What are the advantages of using cdn?
What are selectors in jquery? : jQuery Mobile
How you get server response from an ajax request using jquery?
What is ajax and how it works?
Define slidetoggle() effect?
What is the use of jQuery load method?
How do you add an HTML element in DOM tree?
How to disable cut,copy and paste in TextBox using jQuery?
What is the slowest selector in jQuery?
What are jquery plugins?
How to call a method inside code-behind using jquery?
What is difference between onload and ready?
How to submit a form without submit button using jquery?