Jquery does not conflict with other javascript libraries

I have a jQuery widget that can be added to any websites. I am using jQuery1.7. I doubt that it will conflict with other jQuery older javascript libraries, mootools, prototype, etc.). I found the jquery.noconflict() method. Can someone please give me the exact syntax to use as well, where to add this to my script?

Thanks in advance for your reply.

Thanks to Shlomi Komemi for offering the link.

I am updating the answer to this link

Can I use multiple versions of jQuery on the same page?

+4
source share
2 answers

Thanks to Shlomi Komemi for offering the link.

I am updating the answer to this link

Can I use multiple versions of jQuery on the same page?

0
source
 <script src="jquery-1.6.4.min.js"></script> <script>jQuery.noConflict();</script> 

But once this has been done, you must make sure that you always call Jquery with the whole word instead of the $ sign.

+3
source

Source: https://habr.com/ru/post/1432643/


All Articles