What is jQuery.noConflict
Let say we have an old maintenance project with us and now we want to include jQuery into it.
What is the problem?
Project contain a JavaScript library which contain global function called $. This situation will create a conflict because both jQuery and one of the previous library contain $ function and obviously one of them is going to overridden.
What is the solution?
Now in order to overcome such situation jQuery has introduced jQuery.noConflict
var
# = jQuery.noConflict();
// Use jQuery via jQuery(...)
#(document).ready(
function
()
{
#(
"div"
).fadeIn();
});