jQuery jQuery Attribute

Example

Output the current running jQuery version:

$("button").on("click",function(){ 
  var version = $().jquery;
  alert("You are running jQuery version: " + version);
});

Try It Yourself

Definition and Usage

The string returned by jQuery attributes includes the version number of jQuery.

Syntax

$().jquery