Yes you can use several versions on the same page. jquery
allows this by using a function called noConflict
. In your case it would look like this to load the scripts on the page:
<script src="jquery/3.2.1/jquery.js" type="text/javascript"></script>
<script src="jquery/2.2.3/jquery.js" type="text/javascript"></script>
<script>var $j = jQuery.noConflict(true);</script>
When using $()
will be using version 3.2.1 when using $j()
will be using version 2.2.3.
So, anything related to that particular div, use $j
, which can be renamed to something else you prefer, like $j223
for example, and correctly place the filenames in the tag script
.
Here the documentation: jquery.noconflict
Vc is actually using jquery-3.2.1.slim. js version ?
– hugocsl