selectpicker in bootstrap 4 code example
Example 1: bootstrap 4 selectpicker
// To style only selects with the my-select class
$('.my-select').selectpicker();
Example 2: bootstrap 4 selectpicker
// To style all selects
$('select').selectpicker();