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


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

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