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 |
Explain the each() function?
Define data paremeter of jquery ajax method?
what is the use of param() method in jquery .
Is jquery still relevant 2019?
Can we use our own specific character in the place of $ sign in jQuery?
What is the advantage of using minimized version of jQuery?
What is a jquery library?
Back onto jquery ui' can you see jquery ui making more of an impression in the future, lead by the current successes of jquery?
How to delete cookies in jquery?
How to select all elements using jQuery?
Define jquery $.ajax() method?
What is the advantage of using the minified version of jquery rather than using the conventional one?