How do I add a title to select
as it appears in the options and adds when it is selected?
I know it looks like a duplicate, but the problem is that I did not find what I would like exactly, the selected disabled
option works but does not deliver what I want. Using the same example I saw here in stackoverflow with selected disabled
:
<select>
<option disabled selected>- Selecione -</option>
<option>Volvo</option>
<option>Mercedes Bens</option>
</select>
However, what I would like to do is to have the "- Select -" title set to the placeholder
property and when I was to select the field - in> the same did not appear in the options and disappeared. So: