Created
October 20, 2011 21:05
-
-
Save JakubOboza/1302381 to your computer and use it in GitHub Desktop.
jquery no conflicts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $j = jQuery.noConflict(); | |
// Use jQuery via $j(...) | |
$j(document).ready(function(){ | |
$j("div").hide(); | |
}); | |
// Use Prototype with $(...), etc. | |
$('someid').hide(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.noConflict(); | |
// Use jQuery via jQuery(...) | |
jQuery(document).ready(function(){ | |
jQuery("div").hide(); | |
}); | |
// Use Prototype with $(...), etc. | |
$('someid').hide(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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