Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out what jQuery version I’m using?

My page loads jQuery. Is there any way to find out which version of jQuery that is?

like image 395
uidesigner Avatar asked Sep 14 '12 11:09

uidesigner


People also ask

How do I know what version of jQuery I have?

Type this command in the Chrome Developer Tools Javascript console window to see what version of the jQuery is being used on this page: console. log(jQuery(). jquery);

How do you check if you have jQuery installed?

You can test if jQuery is loaded by opening your javascript console (in Chrome: Settings > More tools > Javascript console). Where the little blue arrow appears type: if(jQuery) alert('jQuery is loaded'); Press enter.

What version of jQuery ui do I have console?

You can use $. ui. version , it's actually the property jQuery UI looks for when determining if it should load itself (if it's already there, abort).


4 Answers

You can use either $().jquery; or $.fn.jquery

Which will return a string containing the version number, e.g. 1.6.2.

like image 178
dsgriffin Avatar answered Oct 22 '22 12:10

dsgriffin


Just open Chrome Console or Firebug and type while in your page

$().jquery;
like image 26
Cristiano Fontes Avatar answered Oct 22 '22 11:10

Cristiano Fontes


you can do:

alert($().jquery);
like image 25
Sudhir Bastakoti Avatar answered Oct 22 '22 11:10

Sudhir Bastakoti


You can know the version by using:

jQuery.fn.jquery
like image 38
Vincent Thibault Avatar answered Oct 22 '22 12:10

Vincent Thibault