chosen
chosen copied to clipboard
Backwards compatibility
I use the first option in a select as a placeholder (with an empty value) e.g.
<select>
<option value=''>Please select...</option>
<option value='1'>First option</option>
</select>
When I enable Chosen, then Chosen's default placeholder text is shown instead.
It would be nice to have some backwards compatibility and I would like to propose the following...
If the first option for the select has a null value, then use the label for that option as the placeholder text instead of the default Chosen placeholder text.
What do you think?
Thanks.