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