.jquery JQ Home  <<  Core & Internals  <<  .query

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 Example Core  <<  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:

Related Tutorials

jQuery Basic Tutorials - Lesson 2 - jQuery Core & Internals