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
What is the difference between onload() and document.ready() function used in jquery?
Write a code for the implementation of a module pattern.
Is jQuery a programming language?
Explain each() function in jquery?
How to use connect in jquery?
What is the method used to define the specific character in place of $ sign?
How to get/set the html contents of an element using jQuery?
What is the purpose of jquery?
Tell me how to check data type of any variable in jquery? : jquery mobile
How to add a class to html element?
In jquery, what is the meaning of toggle?
Explain bind() vs live() vs delegate() methods.
Tell me how to write browser specific code using jquery? : jquery mobile
Is jquery library used for server scripting or client scripting?
What is jquery selectors?