Reputation: 9022
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
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.
Upvotes: 1
Reputation: 1567
Instead of $
, use $().jquery
which returns the version if jQuery is present.
Upvotes: 0
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 :
Upvotes: 1