$(document).ready -> $('.bs-multiselect').each -> $(this).multiselect enableFiltering: true, filterBehavior: 'value' # Replace glyphicons with fonticons if $('.bs-multiselect').length > 0 $('i.glyphicon.glyphicon-search').removeClass('glyphicon glyphicon-search').addClass('fa fa-search'); $('i.glyphicon.glyphicon-remove-circle').removeClass('glyphicon glyphicon-remove-circle').addClass('fa fa-times-circle');