Using jQuery with Other Libraries
Using jQuery with Other Libraries
When we are using jquery with other js framework (like Prototype, MooTools, or YUI) it will throw js error.
element.dispatchEvent is not a function
element.dispatchEvent(event);
However we can override the jquery $ function by calling jQuery.noConflict() at any point after jQuery and other library have both loaded. For example:
<script src=”prototype.js”></script>
<script src=”jquery.js”></script>
<script>
jQuery.noConflict();
// Use jQuery via [...]