Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (32 sloc) 1.12 kb
<?xml version="1.0"?>
<entry type="property" name="jquery" return="String">
<desc>A string containing the jQuery version number.</desc>
<p>The <code>.jquery</code> property is assigned to the jQuery prototype, commonly referred to by its alias <code>$.fn</code>. It is a string containing the version number of <code>jQuery</code>, such as "1.5.0" or "1.4.4".</p>
<desc>Determine if an object is a jQuery object</desc>
var a = { what: "A regular JS object" },
b = $('body');
if ( a.jquery ) { // falsy, since it's undefined
alert(' a is a jQuery object! ');
if ( b.jquery ) { // truthy, since it's a string
alert(' b is a jQuery object! ');
<desc>Get the current version of jQuery running on the page</desc>
alert( 'You are running jQuery version: ' + $.fn.jquery );
<category slug="internals"/>
<category slug="properties/jquery-object-instance-properties"/>
Jump to Line
Something went wrong with that request. Please try again.