bootstrap selectpicker set option based on value 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;
});