bootstrap selectpicker get selected option dataset code example
Example: bootstrap selectpicker get selected value
$('.selectpicker').on('changed.bs.select', function (e) {
var selected = e.target.value;
});
$('.selectpicker').on('changed.bs.select', function (e) {
var selected = e.target.value;
});