Find and Show jQuery Version

To find the jQuery version, you can use any of the following methods:

  1. jQuery.fn.jquery
  2. $().jquery
  3. $()['jquery']

These expressions will return the version number of the jQuery library that is currently loaded on the web page.

example
$(document).ready(function() { alert(jQuery.fn.jquery); });

If you want to know jQuery UI library version, you can use $.ui.version example

$(document).ready(function() { alert($.ui.version); });
example
if (typeof jQuery != 'undefined') { alert(jQuery.fn.jquery); alert($().jquery); alert($()['jquery']); alert($.ui.version); }
run this source code Browser View
Full Source
<html> <head> <title>jQuery Version</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ if (typeof jQuery != 'undefined') { alert(jQuery.fn.jquery); alert($().jquery); alert($()['jquery']); alert($.ui.version); } }); }); </script> </head> <body> <button>Check jQuery version</button> </body> </html>

jQuery Version History

jQuery is a popular JavaScript library that has gone through several versions and updates since its inception.

jQuery 1.x Series

  1. jQuery 1.0: Released in August 2006.
  2. jQuery 1.1: Released in January 2007.
  3. jQuery 1.2: Released in September 2007.
  4. jQuery 1.3: Released in January 2009.
  5. jQuery 1.4: Released in January 2010.
  6. jQuery 1.5: Released in January 2011.
  7. jQuery 1.6: Released in May 2011.
  8. jQuery 1.7: Released in November 2011.
  9. jQuery 1.8: Released in August 2012.
  10. jQuery 1.9: Released in January 2013.
  11. jQuery 1.10: Released in May 2013.
  12. jQuery 1.11: Released in January 2014.

jQuery 2.x Series

  1. jQuery 2.0: Released in April 2013. Note: jQuery 2.x dropped support for older Internet Explorer versions (IE 6, 7, and 8) to make the library smaller and faster.

jQuery 3.x Series

jQuery 3.0: Released in June 2016. This version brought improvements and better compatibility with modern web standards.

  1. jQuery 3.1: Released in July 2016.
  2. jQuery 3.2: Released in March 2017.
  3. jQuery 3.3: Released in January 2018.
  4. jQuery 3.4: Released in April 2019.
  5. jQuery 3.5: Released in April 2020.
  6. jQuery 3.6: Released in March 2021.

jQuery 3.x maintained backward compatibility with 1.x and 2.x versions while providing improvements and bug fixes. Keep in mind that newer versions may have been released since then, so it's a good practice to check the official jQuery website or documentation for the most up-to-date information on jQuery versions and releases.

Conclusion

jQuery has a rich version history, with major versions including the 1.x series, 2.x series, and 3.x series. These versions introduced various improvements, bug fixes, and occasionally dropped support for older browsers to make the library more efficient and compatible with modern web development standards.