How to display the current version of jquery

The current jquery version can be accessed calling the .jquery property of an Object.

Syntax:

 $.fn.jquery

The String returned by the property can be displayed to the user using alert or written the in output for debugging. In order for the code to be valid, the code has to be run once jquery has been loaded in the browser. This requires to check the synchronizations.

References:

jQuery API

Recent Comments