jquery Property - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jquery

Description

The jquery property returns a string containing the jQuery version number.

The following code shows how to Alert the current running jQuery version:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").on("click",function(){
        var version = $().jquery;
        console.log("You are running jQuery version: " + version);
    });//from w  ww .j  a  v  a 2  s  .  co  m
});
</script>
</head>
<body>

<button>Click me!</button>

</body>
</html>

Related Tutorials