Use jQuery.noConflict() for compatibility with other libraries, for example:
var $j = jQuery.noConflict();
Then use $j for jQuery instead of $ ... or just use jQuery , in which case you do not need to set a variable.
Note. Be sure to include jQuery after another library so that it knows what to return $ back.
source share