<select>
element.
In the <select>
element,<option>
elements specifies all the options that are available in the list.
Eg:
[html]<fieldset class="ui-field-contain">
<label for="color1">Select Color</label>
<select name="color1" id="color1" data-native-menu="false">
<option value="mon">Light Blue</option>
<option value="tue">Pink</option>
<option value="wed">Red</option>
</select>
</fieldset>[/html]
If there is a long list of options that are related, use the element <optgroup>
in the <select>
.
Eg:
[html]<fieldset class="ui-field-contain">
<label for="color2">Select Color</label>
<select name="color2" id="color2">
<optgroup label="Dark Colors">
<option value="mon">Red</option>
<option value="tue">Purple</option>
<option value="wed">Dak Green</option>
</optgroup>
<optgroup label="Light Colors">
<option value="sat">Light Pink</option>
<option value="sun">Light Green</option>
</optgroup>
</select>
</fieldset>[/html] data-native-menu="false"
.
Eg:
[html]<select name="color1" id="color1" data-native-menu="false">[/html] multiple
attribute inside the <select>
element.
Eg:
[html]<select name="color3" id="color3" multiple="" data-native-menu="false">[/html]