How to run jQuery and Mootools on the same webpage?

jQuery and Java Libraries

Running two JavaScript libraries on the same page is causing some issues, one or the other might be running but not both at the same time. The issue is that jQuery and Mootools are both using $ to call the function. There are number of fixes that could be done to make them both run on one page mainly all apply to jQuery.

This is the fix that worked for me witch I got from


// Use jQuery via jQuery(…)




// Use Prototype with $(…), etc.



If this solution doesn’t work for you, there are few more workarounds check out Using jQuery with Other Libraries at

Leave a Reply

Your email address will not be published. Required fields are marked *