Because many JavaScript libraries use $ as function or variable names, jquery does the same. In fact, $ is just an alias for jquery. If we need to use another js library other than jquery, we can return control to the library by calling $.noConflict(). Below is a collection of five solutions to this problem, one of which you will find useful.
Example 1:
Conflict resolution 1
test---prototype
test--- jQuery
Example 2:
Conflict Resolution 2 < !--Introducing jQuery -->
test---prototype
test-- -jQuery
Example 3:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Conflict Resolution 3< /title>
test---prototype
test---jQuery
Example 4:
Conflict resolution 4
test---prototype
test---jQuery
Example 5:
Conflict resolution 5
test--- prototype
test---jQuery
The above examples are packaged and downloaded