Refresh selectpicker boostrap 4.
Song Nghia - Technical Consultant
Select picker boostrap usually have issues.
This is the best way to append or html oftion to select.
$('#projectFilter').selectpicker('refresh').empty().append(listOftionHtml).selectpicker('refresh').trigger('change');
$('#projectFilter').selectpicker('refresh').empty().append(listOftionHtml).selectpicker('refresh').trigger('change');