I recently encountered a problem where I referenced the jquery library and another js library at the same time. When using $XX to call the js library function, I found that it failed! So I looked for information and found out that it was a jquery naming conflict. 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:
test---prototype
test---jQuery
test---prototype
test---jQuery
test---prototype
test---jQuery
test---prototype
test---jQuery