What is noConflict()
noConflict() is an inbuilt function in jQuery by which you can resolve conflict situation when you use multiple JavaScript frameworks/libraries.
Why we use noConflict()
As we know we use $ sign in jquery for defination and for single project we also other JavaScript libraries and frameworks like ReactJs,Angular,Knockout etc.What if other JavaScript frameworks/libraries also use $ sign.?
In that case one of them might not work as excepted so to overcome this situation jQuery introduce noConflict() method.
Basically noConflict() method releases the hold on the $ shortcut identifier, so that other scripts can use it.
Some of the example about noConfilt method http://coderuck.com/jquery-noconflict-method/41
Top comments (0)