Skip to content
Related Articles

Related Articles

jQuery UI Selectmenu

View Discussion
Improve Article
Save Article
  • Last Updated : 18 Jan, 2021

In this article, we are going to build a select menu using jQuery UI selectmenu widgets that can provide us select options. We can use this widget to make a form for different actions.


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

Parameter: It does not accept any parameter.

Return value: It returns a selectmenu from jQuery UI.

Pre-compiled files: Please download the libraries and then use the path for the given script below.

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

Example: In this example, we can see that we are going to build a simple select menu using the selectmenu widget of jQuery UI. 


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content=
        "width=device-width, initial-scale=1">
    <link href=
               rel="stylesheet" type="text/css" />
        $(function () {
        .ui-menu {
            width: 150px;
        .widget-header {
            padding: 0.2em;
            color: white;
        Geeks for Geeks Selectmenu 
        Using jQuery UI
        <form action="#">
                <label for="title">Select a title</label>
                <select name="title" id="title">
                    <option disabled selected>
                        Please pick one</option>



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!