Open In App

jQuery jquery Property

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

The jquery property is used to return the jQuery version number.

Syntax

$().jquery

Example: Return the version number.

html




<!DOCTYPE html>
<html>
 
<head>
    <style>
        h1 {
            color: green;
        }
    </style>
    <script src=
    </script>
 
    <script>
        $(document).ready(function () {
 
            $("button").on(
                "click", function () {
                    let cu_version = $().jquery;
 
                    alert("The running jQuery version is: "
                        + cu_version);
                });
        });
    </script>
</head>
 
<body>
    <center>
        <h1>Geeks for Geeks</h1>
        <button>
            Check
        </button>
    </center>
</body>
 
</html>


Output:

jquery-56


Last Updated : 11 Jul, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads