Shah
Shah

Reputation: 79

jquery no conflict with other javascript libraries

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

Thanks in advance for the response.

Thank you Shlomi Komemi for suggesting the link.

I am updating the answer this link

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

Upvotes: 4

Views: 750

Answers (1)

Satya
Satya

Reputation: 8881

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

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

Upvotes: 3

Related Questions