jQuery oddity in Wordpress

I'm getting started with Wordpress and trying to use jQuery as my JavaScript library of choice. I've got it loading with wp_enqueue_script but for some reason when the page actually loads the $ function it does so with it behaving like it does in Prototype (single dollar sign is "get by Id" and $$ is the CSS selector system).

I'm very confused as to why because I cannot find anywhere in the response from the server where the instruction to load Prototype is coming from; there is no <script> tag in the head or body that points to the library, and Firebug's list of loaded scripts does not include it. Has anyone else encountered this issue, and if so where is Prototype hiding?

Update

After having an idea, I tried something - the $ and $$ behavior is part of Wordpress's copy of jQuery 1.4.2: Loading the script from Google's CDN resolved the problem. So the new question is, "Why does Wordpress jQuery differ from normal jQuery?"

Answers


"Why does Wordpress jQuery differ from normal jQuery?"

WordPress loads jQuery in no conflict mode - another script on the page must've been tinkering with the $ surely?


Need Your Help

avoiding prefixes with java-ws and apache cfx

web-services soap wsdl jax-ws cxf

I'm using jax-ws with apache cxf every things seems ok , except the prefix in soap envelope

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.