1 line
1023 B
JSON
1 line
1023 B
JSON
{"name":"jquery","type":"property","title":".jquery","deprecated":null,"removed":null,"desc":"A string containing the jQuery version number.","categories":["internals","properties/jquery-object-instance-properties"],"entries":[{"return":"String","signatures":{"added":"1.0"},"examples":[{"desc":"Determine if an object is a jQuery object","code":"\nvar a = { what: \"A regular JS object\" },\n b = $( \"body\" );\n\nif ( a.jquery ) { // Falsy, since it's undefined\n alert( \"a is a jQuery object!\" );\n}\n\nif ( b.jquery ) { // Truthy, since it's a string\n alert( \"b is a jQuery object!\" );\n}\n"},{"desc":"Get the current version of jQuery running on the page","code":"\nalert( \"You are running jQuery version: \" + $.fn.jquery );\n"}],"longdesc":"\n <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>\n "}],"slug":"jquery-2"} |