Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post



Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery's case, $ is just an alias for jQuery, so all functionality is available without using $. If you need to use another JavaScript library alongside jQuery, return control of $ back to the other library with a call to $.noConflict().

Old references of $ are saved during jQuery initialization; noConflict() simply restores them.

Code sample (How to use it):

< script src="other_lib.jsfile"></ script >
< script src="jquery.jsfile"></ script >
< script >
//my jQuery custom alias(jqr) for $
var jqr = $.noConflict();
//then you can call jquery function with jqr.(whatever).
</ script >

Reference and more explanation available with following link : 

Share your answer

Share as a guest

Please subscribe me to the CodeChef4U.

By creating your new answer, you agree to the privacy policy and terms of service.