I am using placeholder
in my input
text type and they work perfectly, only I have a select
, in which I want to put a placeholder
where it says "select an option", but it does not appear, does anyone know if I can add it? and how can it be added? Thanks greetings
You can add a first option disabled, and at the same time selected that serves to display an informative text:
Better
In a
select
you cannot add aplaceholder
, but what you can do is add aoption
withvalue
empty indicating what you want to add in theplaceholder
, like this: