Single select controls comprise of a surround and 3 styles, toggled by optional attributes and classes. The attribute should be added to the
<select> tag, and classes should follow on from the surrounding <div>.
| Style | Attribute | Value | Standard Example | Inline Example |
|---|---|---|---|---|
| Standard | ||||
| Disabled |
class
disabled |
disabled
disabled |
||
| Invalid | class | invalid | ||
<div class="form-group">
<label for="<!-- Select control ID goes here -->"><!-- Label text goes here -->:</label>
<select class="form-control selectpicker" id="<!-- Select control ID goes here -->" name="<!-- Select control name goes here -->">
<option value="">Please select one</option>
<option value="<!-- Option value goes here -->"><!-- Option label goes here --></option>
<option selected="selected" value="<!-- Input control ID goes here -->"><!-- Input control ID goes here --></option>
</select>
</div>
Multiple choice controls comprise of a surround and 3 styles, toggled by optional attributes and classes. The attribute should be added to the
<select> tag, and classes should follow on from the surrounding <div>.
| Style | Attribute | Value | Standard Example | Inline Example |
|---|---|---|---|---|
| Standard | ||||
| Disabled |
class
disabled |
disabled
disabled |
||
| Invalid | class | invalid | ||
<div class="form-group">
<label for="<!-- Select control ID goes here -->"><!-- Label text goes here -->:</label>
<select multiple="multiple" class="form-control selectpicker" id="<!-- Select control ID goes here -->" name="<!-- Select control name goes here -->">
<option value="">Please select one</option>
<option value="<!-- Option value goes here -->"><!-- Option label goes here --></option>
<option selected="selected" value="<!-- Input control ID goes here -->"><!-- Input control ID goes here --></option>
</select>
</div>