Skip to content
Related Articles
Open in App
Not now

Related Articles

jQuery UI Selectmenu destroy() Method

Improve Article
Save Article
  • Last Updated : 24 May, 2022
Improve Article
Save Article

jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI selectmenu widget can provide us with select options. We can use this widget to make a form for different actions.

The jQuery UI Selectmenu destroy() method is used to destroy the select menu list.


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

Parameters: This method does not accept any parameter.

CDN Link: First, add jQuery UI scripts needed for your project.

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

Example: This example describes the uses of jQuery UI Selectmenu destroy() Method.


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
        jQuery UI Selectmenu destroy() Method
    <link rel="stylesheet" href=
    <script src="//">
    <script src="//">
        <h1 style="color: green;">
        <h3>jQuery UI Selectmenu destroy() Method</h3>
        <label for="sub">Select Computer Subject:</label>
        <select name="sub" id="sub">
            <option value="html">HTML</option>
            <option value="css">CSS</option>
            <option value="js">JavaScript</option>
            <option value="java">Java</option>
            <option value="python">Python</option>
        <input type="button" id="btn" value="Destroy the Widget" 
            style="padding: 5px 15px;">
        $(document).ready(function () {
            $("#btn").on('click', function () {




My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!