Multiple select option Selectmenu


Include multiple = "multiple" in the <select> elements to make multiple selected option in the custom listview.


Following example demonstrates the use of multiple select option in select menu in the jQuery Mobile.

<!DOCTYPE html>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>

      <h2>Multiple Select Option Value Example</h2>
      <div class = "ui-field-contain">
         <label for = "select-custom">Custom Select</label>
         <select id = "select-custom" multiple = "multiple" data-native-menu = "false">
            <option value = "mu">Mumbai</option>
            <option value = "pu" selected = "selected">Pune</option>
            <option value = "be" selected = "selected">Belgaum</option>
            <option value = "ch">Chennai</option>
            <option value = "ban">Bangalore</option>


Let's carry out the following steps to see how the above code works −

  • Save the above html code as selectmenu_custom_multiple_select.html file in your server root folder.

  • Open this HTML file as http://localhost/selectmenu_custom_multiple_select.html and the following output will be displayed.

Kickstart Your Career

Get certified by completing the course

Get Started