.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 |
---|---|
.jquery | String 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');
});
});
Related Tutorials
jQuery Basic Tutorials - Lesson 2 - jQuery Core & Internals