jQuery.noConflict is used to avoid conflict of jQuery $ function or variable name used/referred by other JavaScript libraries  (e.g. Prototype, MooTools).

In case of conflict we can use jQuery.noconflict(). After execution of this we can reference JQuery  ($) using jQuery  or own specific keyword.

 

Example 1: Refer JQuery using jQuery

jQuery.noConflict();

// Something with jQuery

jQuery( "div p" ).hide();

// Something with another library's $()

$( "content" ).style.display = "none";

 

Example 2: Refer JQuery using own keyword ($own)

 

Var $own = jQuery.noConflict();

// Something with jQuery

$own( "div p" ).hide();

// Something with another library's $()

$( "content" ).style.display = "none";