I have a legacy website using Prototype. But I want to use JQuery in addition. How can I use Prototype and JQuery an the same page when they both override the $ sign?
I have a legacy website using Prototype. But I want to use JQuery in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default, jQuery uses “$” as a shortcut for “jQuery”. However, you can override that default by calling jQuery.noConflict() at any point after jQuery and the other library have both loaded. For example:
see http://docs.jquery.com/Using_jQuery_with_Other_Libraries