Dj.Sunrise Dj.Sunrise - 4 months ago 41
jQuery Question

silviomoreto / bootstrap-select [title] attribute

There is an attribute [multiple title] according silvio bootstrap-select documentation:

Here is documentation:

<select class="selectpciker" multiple title='Choose one of the following...'>

It works well! But I need a single select ( not multiple ) . [title] attribute doesn't works without [multiple] attribute.

I didn't find a single title attribute in silvio bootstrap-select documentation.

Could anyone help me ?


You can use the data-hidden attribute on the first option..

<select class="selectpicker">
    <option data-hidden="true">Choose one</option>
    <option value="one">One</option>
    <option value="two">Two</option>
    <option value="three">Three</option>

Working demo: