bootstrap selectpicker value code example
Example 1: bootstrap selectpicker get selected value
$('.selectpicker').on('changed.bs.select', function (e) {
var selected = e.target.value;
});
Example 2: select picker bootstrap
$('.ex-disable').click(function () {
$('.disable-example').prop('disabled', true);
});
$('.ex-enable').click(function () {
$('.disable-example').prop('disabled', false);
$('.disable-example').selectpicker('refresh');
});