jQuery noConflict() method.

jQuery noConflict() method.

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.

How to use or define noConflict() Method.








Categories: Java Script Tags: #JQuery, #JavaScript,

Newsletter Subcribe

Receive updates and latest news direct from our team. Simply enter your email.