Skip to main content

Dropdown header

A plugin by Brian Reavis for add dropdown header to native dropdown with a close button.

Html
<select id="dropdownHeader">
<option value="1" selected>Awesome</option>
<option value="2" selected>Beast</option>
<option value="3" selected>Compatible</option>
<option value="4">Thomas Edison</option>
<option value="5">Nikola</option>
<option value="6">Selectize</option>
<option value="7">Javascript</option>
</select>
Javascript
    $("#dropdownHeader").selectize({
plugins: {
dropdown_header: {
title: 'Dropdown Header'
}
},
});