jQuery - The noConflict() Method
What if you want to use different frameworks on your webpages but also want to continue using jQuery?
jQuery and Other JavaScript Frameworks
jQuery makes things easier by using the '$' sign instead of writing 'jQuery'.
There are several well-liked JavaScript frameworks, such as Angular, Backbone, Ember, Knockout, and others.
What happens if other JavaScript frameworks also use the $ symbol as a quick way to do something?
If two different frameworks both use the same shortcut, it's possible that one of them may stop functioning properly.
The folks behind jQuery have already considered this issue and created a method called noConflict().
The jQuery noConflict() Method
The noConflict() method lets go of the $ shortcut, allowing other scripts to use it.
You can still use jQuery by typing its full name instead of the shortcut.
You can easily make your own quick way. The noConflict() method gives you back jQuery, which you can keep in a variable for later. Here's an example:
If you have some jQuery code that uses the "$" symbol and you don't want to change it, you can pass the "$" symbol as a parameter to the "ready" method. This lets you use "$" to work with jQuery inside that function. Outside of that function, you'll need to use "jQuery" instead of "$".
CSS
Jquery