I do with select in two ways:
- With disabled option.
- With optgroup tag.
<select name="curso1" id="curso1">
<option disabled="" style="font-size:12px; text-align:left; font-family:Arial Black">Group</option>
<option value="1">Windows 8</option>
<option value="8">lalalala</option>
</select>
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
How to do this in a datalist?
How do group with the datalist?