Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery | jquery Property

  • Last Updated : 27 Feb, 2019

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

Syntax

$().jquery

Example: Return the version number.




<!DOCTYPE html>
<html>
  
<head>
    <style>
        h1 {
            color: green;
        }
    </style>
    <script src=
  </script>
     
  <script>
        $(document).ready(function() {
            
            $("button").on(
              "click", function() {
                var 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:
Before:

After:

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!