jQuery conflicting with other libraries, solution
December 23rd, 2009
No comments

What if you already use some library that occupies the $ variable and you want to continue using it and jQuery together. What happens in this case if you load jQuery is that it will override the variable to jQuery object and you won’t be able to use your existing library. Possible solutions of this are:
- Reassign jQuery from $ to something like $jq.
- Include jQuery first and after it the other library. After this instead of typing $ you will have to type jQuery. Example: jQuery(‘#mydivId’);
- You can also use the jQuery.noConflict() method to revert the $ to the value it had before jQuery was included in the page.
Read more…

