Bootstrap select dropdown list placeholder

Jordan.J.D picture Jordan.J.D · Apr 2, 2014 · Viewed 263.7k times · Source

I am trying to make a dropdown list that contains a placeholder. It doesn't seem to support placeholder="stuff" as other forms do. Is there a different way to obtain a placeholder in my dropdown?

Answer

Brakke picture Brakke · Apr 24, 2014

Yes just "selected disabled" in the option.

<select>
    <option value="" selected disabled>Please select</option>
    <option value="">A</option>
    <option value="">B</option>
    <option value="">C</option>
</select>

Link to fiddle

You can also view the answer at

https://stackoverflow.com/a/5859221/1225125