.jquery

A string containing the jQuery version number.

.jquery()👒 String

The .jquery property is assigned to the jQuery prototype, commonly referred to by its alias $.fn. It is a string containing the version number of jQuery, such as "1.5.0" or "1.4.4".

Determine if an object is a jQuery object

HTML
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!");
}
DEMO

Get the current version of jQuery running on the page

HTML
alert("You are running jQuery version: " + $.fn.jquery);
DEMO

Looking for a Web Developer?

πŸ‘‹

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /