Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get jQuery version from inspecting the jQuery object

Is there a way to find out what version of jQuery is being used by inspecting the jQuery object? jQuery is dynamically getting added to my page and I cannot see any reference to it in my markup. If I inspect it in my browser's console, it's there.

like image 649
Jeff Avatar asked Jul 28 '11 23:07

Jeff


People also ask

How do I check jQuery version?

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);

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).

How do I know if jQuery is 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.

How do I know if jQuery is installed on Linux?

You can just type window. jQuery in Console . If it return a function(e,n) ... Then it is confirmed that the jquery is loaded and working successfully.


1 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 144
David Hancock Avatar answered Oct 27 '22 11:10

David Hancock