Open In App
Related Articles

jQuery UI Tooltips destroy() Method

Improve Article
Save Article
Like 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 add new themes and allows for customization. In this article, we will see how to use destroy option in jQuery UI tooltips. The destroy option is used to destroy the tooltips in jQuery 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>

Example : The following example demonstrates the destroy option for the tooltip. Once the ‘click to destroy!’ option is clicked, it destroys the 


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <script src=
    <script src=
    <h1 style="color: green">GeeksforGeeks</h1>
    <h3>jQuery UI | Tooltip destroy method</h3>
      $(function () {
          track: true,
        $("#gfg").click(function () {
      value="click to destroy!"
    <button id="gfgtt" title="GeeksforGeeks">Click here!</button>



Last Updated : 05 Feb, 2021
Like Article
Save Article
Similar Reads
Related Tutorials