sriram
sriram

Reputation: 9022

How to know jQuery is loaded in a site?

I want to test a particular site. I wish the site has, jquery in it. But doing so in the console:

$

gives me undefined. But I can see they are using jQuery in script tag, like :

<script type="text/javascript" src="scripts/lib/jquery/jquery-1.8.3.min.js" charset="utf-8"></script>

Are there any other way I can access jQuery apart from $?

Upvotes: 3

Views: 73

Answers (3)

Prashobh
Prashobh

Reputation: 9542

It might be some  plugin may have overwritten the $ variable or 
You have JavaScript running before jquery is loaded .

Check your jquery path also and check with Firbug

or try with

var $j = jQuery.noConflict();

Now you can use $j instead of $ in your jquery code.

More Info jquery conflict

Upvotes: 1

Viezevingertjes
Viezevingertjes

Reputation: 1567

Instead of $, use $().jquery which returns the version if jQuery is present.

Upvotes: 0

Makrand
Makrand

Reputation: 587

try using it in this format :

jQuery(document).ready({ .... 

instead of $

Also see if you can identify the jquery.js or check out this list. Here are various versions of jquery that might be available :

http://jquery.com/download/

Upvotes: 1

Related Questions