2
I have a select (usually called a combobox) and wish there was no text when running the site
<select>
<option value="Roupa Desportiva">Roupa Desportiva</option>
<option value="Futebol">Futebol</option>
<option value="Basquetebol">Basquetebol</option>
<option value="Andebol">Andebol</option>
<option value="Tenis">Tenis</option>
</select>
that’s the code I’m using
it is only because visually it does not look beautiful and for later put in the database do not want to have a blank value not to have to make validations
– José Gomes
@Joségomes Yes I understand. In fact the worst in my view is the user find that the field is already selected with an option, or find that the field is required.
– hugocsl
yes that is why I did not want there text... There is then no other way to solve than the above?
– José Gomes
Yes I just edited with another option
– hugocsl
Okay, thanks for the help @hugocsl
– José Gomes
Quiet young man we are there. Includes a CSS in select now, so the first option is kind of deleted in the combo box, it’s just a usability detail even. Good sorete with the project!
– hugocsl