Skip to content
Related Articles

Related Articles

jQuery UI Tooltips open Event

Improve Article
Save Article
  • Last Updated : 10 Feb, 2021
Improve Article
Save Article

jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI tooltip widget helps us to adds new themes and allows for customization. In this article we will see how to use open event in jQuery UI tooltips. The open event is triggered when the tooltips are open in jQuery UI.


   open: function(event, ui) {}

Parameters: This method does not accept any parameters.

CDN Link:

  • First, add jQuery UI scripts needed for your project.

<link href=”” rel=”stylesheet”>
<script src=””></script>
<script src=””></script>



<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <script src=
    <script src=
    <h1 style="color: green">GeeksforGeeks</h1>
    <h3>jQuery UI | Tooltip open event</h3>
      $(function () {
          track: true,
          open: function (event, ui) {
            console.log("open event is fired");
        $("#gfg").click(function () {
    <input id="gfg" type="submit" name="GeeksforGeeks" value="click" />
    <span id="gfgtt" title="GeeksforGeeks"> Click here!</span>

Output: On click of the button, the tooltip is shown and the open event is fired as given below.


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!