DeselectAll doesn't work for Bootstrap-select
EDIT
There was a bug with deselectAll
and is now fixed
You can empty selection using val
:
$('#f1').click(function(){
$('.selectpicker').selectpicker('val', '');
});
(it does now)DeselectAll
should theoretically do the job, but for some reason it doesn't.
DEMO
I got solution from following code.Try it
$("#listID").val('').trigger('change');