How to check jQuery version in console?

by princess.fritsch , in category: JavaScript , 2 years ago

How to check jQuery version in console?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by brisa , 2 years ago

@princess.fritsch You can use $().jquery to check jquery version in console chrome, firefox or any other browser, here is example:


1
2
// Output: '1.12.4'
$().jquery


Member

by emma , a year ago

@princess.fritsch 

To check the version of jQuery that is being used in your web page, you can use the jQuery.fn.jquery property in the browser's console. Here is an example of how you can do this:

  1. Open the browser's console by pressing F12 on your keyboard (in most browsers).
  2. Type jQuery.fn.jquery and press Enter.


This will output the version number of jQuery that is being used on the web page.


Alternatively, you can also use the jQuery.prototype.jquery property, which will return the same result.


Here is an example of how you can use this property:

  1. Open the browser's console by pressing F12 on your keyboard (in most browsers).
  2. Type jQuery.prototype.jquery and press Enter.


This will also output the version number of jQuery that is being used on the web page.