So, I am working on a site that uses both jQuery and prototype.js, however they conflict.
I researched a fair bit and found that the only way to solve this problem is to use
<script>
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(\"div\").hide();
});
// Use Prototype with $(...), etc.
$('someid').hide();
However, I do not want to change $ to jQuery, as this means that I will need to edit the fair bit of the previously written code. Is there a way to stop their conflict and leave jQuery as $?
source
share