Open In App
Related Articles

jQuery UI Tabs 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 tabs widget helps us to put some content in different tabs and allow us to switch between them. In this article, we will see how to use destroy() method in jQuery UI slider. 
The destroy() method is used to destroy all the tabs in jQuery UI.


$( ".selector" ).tabs("destroy");

Parameters: This method does not accept any parameter.

Approach: 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">
    <link href=
    <script src=
    <script src=
        $(function () {
        function g() {
    <h3>jQuery UI tabs disable method</h3>
    <div id="gfg">
            <li><a href="#gfg1">Tab 1</a></li>
            <li><a href="#gfg2">Tab 2</a></li>
            <li><a href="#gfg3">Tab 3</a></li>
        <div id="gfg1">
<p>tab Number -1</p>
        <div id="gfg2">
<p>tab Number -2</p>
        <div id="gfg3">
<p>tab Number -3</p>
    <button onclick="g()">
        Click To Destroy


Last Updated : 18 Dec, 2021
Like Article
Save Article
Similar Reads
Related Tutorials