Can jQuery and Mootools work together??
If not when is that case?
jQuery can be used in no-conflict mode:
jQuery.noConflict();
or could use jQuery
instead of $
.
jQuery('#myelement').hide();
As well in MooTools there's a document.id()
method that could be used instead of $
:
document.id('myelement');
In case you want to be able to use a $
you can try the snippet below:
(function($) {
$('#myelement').click(function() {
...
});
})(jQuery);
By the same way you can use $
from MooTools