Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created October 20, 2011 21:05
Show Gist options
  • Save JakubOboza/1302381 to your computer and use it in GitHub Desktop.
Save JakubOboza/1302381 to your computer and use it in GitHub Desktop.
jquery no conflicts
var $j = jQuery.noConflict();
// Use jQuery via $j(...)
$j(document).ready(function(){
$j("div").hide();
});
// Use Prototype with $(...), etc.
$('someid').hide();
jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});
// Use Prototype with $(...), etc.
$('someid').hide();
/*
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment