I have a functionality that works fine under jQuery 1.7. But another functionality on a different page that breaks and needs jQuery 1.4.2.
How do I effectively switch from 1.7 to 1.4.2 when the page with the 1.4.2 functionality loads?
Thanks
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.
first of all I would strongly suggest that you try to see what the problem with that plugin or piece of code that you say “it breaks” using the newest version of jQuery.
nevertheless, you can always load several versions of jQuery on the same page and treat them differently, for example:
Live example on JsBin