var msg if window jQuery msg You are running jQuery version jQuery fn

1
2
3
4
5
6
7
var msg;
if (window.jQuery) {
msg = 'You are running jQuery version: ' + jQuery.fn.jquery;
} else {
msg = 'jQuery is not installed';
}
alert(msg);