Saturday, November 12, 2011

why developer use jQuery .noConflict() method

If we are referring any other library files (MooTools, prototype.js,YUI )
 along with jQuery you may get conflicts in the namespace  between the 
two libraries.

Note: you need to use is jQuery’s .noConflict() method like this 
jQuery.noConflict(); before you write any jQuery code.  jQuery will 
return $() to it’s previous owner .So we  need to use jQuery() instead 
of  $() function.

No comments: