.jqueryS2C Home « Core & Internals « .jquery

The jQuery version number.

Description

The .jquery property holds a string containing the jQuery version number.

Syntax

Signature Description
.jqueryString containing the jQuery version number.

Parameters

None.

Return

A String object.

.jquery ExampleTop

A string containing the jQuery version number.


$(function(){
  $('#btn1').on('click', function() { 
    var version = $().jquery; 
    alert('Running version ' + version + ' of jQuery'); 
  });
}); 

Press the button below to action the above code: