How do I make a placeholder for a ‘select’ box?

A non-CSS – no JavaScript/jQuery answer:

<label>Option name
    <option value="" disabled selected>Select your option</option>
    <option value="hurr">Durr</option>

Update (December 2021):

This works for latest Firefox, Chrome, and Safari. It used to not work for many browsers in the past, as pointed out in the comments.

Leave a Comment