English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

jQuery jQuery Property

jQuery Properties

The jQuery property returns a string containing the jQuery version number.

jQuery properties are assigned to the jQuery prototype, usually by its alias $.fn or by reference $().

Syntax:

$().jquery

Either

$.fn.jquery

Instance

Get the current version of jQuery running on the page:

$("button").on("click",function(){ 
  let version = $().jquery; 
  alert("You are running jQuery version: ", + version);
});
Test and See‹/›

Get the current version of jQuery running on the page:

$("button").on("click",function(){ 
  let version = $.fn.jquery; 
  alert("You are running jQuery version: ", + version);
});
Test and See‹/›

jQuery Properties