turns a bootstrap's dropdown into a select for javascript use
It is not meant for forms but rather asynchronous js features.
Requires jQuery and bootstrap.
Create a bootstrap dropdown
and extend it:
$('.dropdown-select[data-toggle=dropdown]').dropdownSelect();
Each li element can have data-value attribute which indicates the selected
value.
Upon change a jQuery change event is triggered with additional parameters
of value and label:
$('#your-dropdown').on(change, function(event, value, label) {
console.log('Item with label ' + label + ' and value ' + value + ' was selected!');
});