0

I want to add placeholder or name on the select.. I want "Pet Type" will show up but the "Pet 1" will show..thanks..

<select name="Pet Type">
    <option value="A">Pet 1</option>
    <option value="B">Pet 2</option>
    <option value="C">Pet 3</option>
</select>

I want to add placeholder or name on the select.. I want "Pet Type" will show up but the "Pet 1" will show..thanks..

repcodes
  • 1
  • 1
  • 3

1 Answers1

0

Use <option value="" disabled selected>-- Pet Type --</option> as your first option, see How do I make a placeholder for a 'select' box?

Community
  • 1
  • 1
ObiWanKobi
  • 195
  • 2
  • 14