Is there a jQuery function that returns the version of jQuery that is currently loaded?
$().jquery;
This will return a string containing the jQuery version
try
alert($().jquery)
Alert is good, but if you want to actually print the jquery version...
<script>
document.write($.fn.jquery);
</script>
I'm not sure how many versions of jQuery this exists in, but a jQuery object has a jquery
property that stores the version.
alert( $().jquery );
Will alert 1.4.2
if you're using that version.
$().jquery; // yields the string "1.4.2", for example
Source: http://jquery-howto.blogspot.com/2009/02/how-to-check-jquery-version.html
alert( $.fn.jquery )