Marco Marco - 1 year ago 119
Javascript Question

Bootstrap select not changing icon set

I am using this select js plugin. In the documentation it says that you can change the icons with adding data attributes to select tag. I did it like it is suggested in the docs:

<select name="position" class="selectpicker form-control" multiple data-max-options="2" data-iconBase="ion" data-tickIcon="ion-checkmark-round" required>

But the html that is being created with the select element still has glyphicon icon, so nothing gets rendered. Has anyone managed to change the icons in this package?

Answer Source

Please fix you data- attributes too data-icon-base="ion" and data-tick-icon="ion-checkmark-round"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download