Using multiple versions of jQuery on the same page
There are few reasons why you would want to disable the menu we get after clicking right mouse button. One of them is if you want to show your own menu. In this daily tip we will disable that default menu using jQuery.
You might be wondering why would you want to use different version of jQuery on the same page, why not just use the newest version, right? Well in my freelancing career as a web developer i stumbled upon few websites that are using jQuery ver 1.2.x and when i changed it to 1.3.x some of the plugins stopped working, so i needed to have both versions on a same page. This is how it’s done…
var $jq = jQuery.noConflict();
And this way when you want something made with the new version of jquery instead of the “$” use “$jq”.
You can also use this trick if there is prototype on the site, because it’s also using the $.
Ok, that’s it for today, i hope this little tip helped you or will help you in future.
- Easy Unobstructive jQuery Print Page Tutorial
- Use HTML5 Placeholder Input Attribute Today using jQuery!
- Automatic input field focus on page load
- Top 10 jQuery Snippets (including jquery 1.4)
- Little app to help you code 10+ times faster
Did you absolutely LOVE this article... share it!