This link has been bookmarked by 142 people . It was first bookmarked on 04 Jun 2007, by Dirk Jende-Holzmann.
-
23 Oct 15
-
21 Sep 13
-
14 Nov 12
-
06 Nov 12
-
22 Oct 12
-
04 Oct 12
-
11 Aug 12
-
17 Apr 12
-
06 Apr 12
-
27 Nov 11
-
27 Sep 11
-
10 Sep 11
-
17 May 11
-
06 Mar 11
-
23 Feb 11
-
15 Feb 11
-
18 Jan 11
-
11 Jan 11
-
07 Jan 11
-
By default, jQuery uses "
$" as a shortcut for "jQuery" -
Overriding the
$-functionHowever, you can override that default by calling jQuery.noConflict() at any point after jQuery and the other library have both loaded. For example:
-
-
29 Dec 10
-
23 Nov 10
-
29 Oct 10
-
20 Oct 10
-
22 Sep 10
-
12 Jun 10
-
22 May 10
-
12 May 10
Jennifer Culpvar $j = jQuery.noConflict(); // Use jQuery via $j(...) $j(document).ready(function()
-
11 May 10
-
28 Mar 10
-
- Reassign jQuery to another shortcut
-
var $j = jQuery;
-
-
-
02 Mar 10
-
28 Feb 10
-
24 Feb 10
-
12 Feb 10
-
22 Jan 10
-
06 Jan 10
-
20 Dec 09
-
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(); });
-
-
18 Dec 09
-
29 Nov 09
-
27 Nov 09
-
19 Nov 09
-
18 Nov 09
-
28 Oct 09
-
26 Oct 09
Stefan Thulljquery muss in den Kompatibilitätsmodus, sonst gehts nicht mit motools
-
20 Oct 09
-
16 Oct 09
-
20 Sep 09
-
17 Sep 09
-
14 Sep 09
-
30 Jul 09
Jeff KirschWhen jQuery makes my Prototype calls stop working...
ajax jquery programming conflict library prototype howto javascript
-
Lynsey GwinThe 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 P
-
07 Apr 09
-
03 Apr 09
-
01 Apr 09
Oriol Mercadé<script> var $j = jQuery.noConflict(); // Use jQuery via $j(...) $j(document).ready(function(){ $j("div").hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); </script>
programming javascript tips ajax howto jquery prototype library with delicious
-
04 Mar 09
-
29 Jan 09
-
13 Dec 08
-
03 Dec 08
-
22 Nov 08
-
06 Nov 08
-
28 Oct 08
-
22 Oct 08
-
10 Oct 08
-
29 Sep 08
-
23 Sep 08
-
19 Sep 08
-
15 Sep 08
-
31 Aug 08
-
21 Aug 08
-
18 Aug 08
-
12 Aug 08
-
06 Aug 08
-
30 Jul 08
-
27 Jun 08
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"
-
-
08 May 08
-
02 May 08
Sean MulhollandUse jQuery with other javascript libraries with no conflicts (i.e MooTools)
-
10 Apr 08
Christian LongHow to use jquery with other libraries
-
11 Feb 08
-
06 Dec 07
-
01 Nov 07
-
31 Oct 07
-
19 Aug 07
-
03 Jul 07
-
08 Jun 07
-
04 Jun 07
-
09 May 07
Tad DonagheHow to use jQuery with other javascript libraries like prototype
-
08 May 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.