.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 Examplego to top of page Top

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:


go to home page Homepage go to top of page Top