This link has been bookmarked by 18 people . It was first bookmarked on 04 Jun 2007, by Dirk Jende-Holzmann.
-
-
If you want to make sure that jQuery won't conflict with another library - but you want the benefit of a short name, you could do something like this:
-
var $j = jQuery.noConflict();
// Use jQuery via $j(...)
$j(document).ready(function(){
$j("div").hide();
});
-
-
Layal K(function($) {
-
Pankaj<script> var $j = jQuery.noConflict(); // Use jQuery via $j(...) $j(document).ready(function(){ $j("div").hide(); });
-
Navneet KumarnoConflict
-
Olivier MansourThe jQuery library, and virtually all of its plugins are constrained within the jQuery namespace. As a general rule, "global" objects are stored inside the jQuery namespace as well, so you shouldn't get a clash between jQuery and any other library (like Prototype, MooTools, or YUI).
-
That said, there is one caveat: By default, jQuery uses "
$" as a shortcut for "jQuery"
-
-
Sean MulhollandUse jQuery with other javascript libraries with no conflicts (i.e MooTools)
-
Tad DonagheHow to use jQuery with other javascript libraries like prototype
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.