There are other JavaScript libraries that use $ as a function or variable name, just as jQuery does. With regard to jQuery, the $ is just an alias for jQuery.
If we need to use another JavaScript library alongside jQuery, we can return control of $ back to the other library with a call to $.noConflict(). This method can also be used to specify a new custom name for the jQuery variable.
Example
We will use the following HTML for the examples listed below.
;Syntax
$.noConflict(removeAll)
var jq=$.noConflict(); jq(document).ready(function(){ jq("#img1").click(function(){ jq("#div1").text(“You implemented the noConflict method!”); }); });