bootstrap multi select code example

Example 1: bootstrap select

<select class="custom-select">
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

Example 2: cant pass multipule select input bootstrap

<div class="col-9">
                                <select id="generals" name="generals" class="form-control kt-selectpicker"  multiple title="Choose one of the following...">
                                <optgroup label="Passport">
                                    <option value="passport_number">Number</option>
                                    <option value="passport_date">Date of issuance</option>
                                    <option value="passport_expired">Date of expiry</option>
                                    <option value="passport_office">Issuing Office</option>
                                </optgroup>
                                    <optgroup label="Personal">
                                        <option value="applicant_id">Applicant Id</option>
                                        <option value="first_name">First Name</option>
                                        <option value="first_name">Middle Name</option>
                                        <option value="last_name">Last Name</option>
                                        <option value="address">Address</option>
                                        <option value="crew_id">Crew Id</option>
                                        <option value="email">Email</option>
                                        <option value="mobile_number">Mobile Number</option>
                                    </optgroup>
                                </select>
                            </div>

Example 3: multiple select dropdown in bootstrap

$('select').selectpicker();

Tags:

Misc Example