Answers for "place holder in a dropbox html css"

1

how do i make a placeholder for a 'select' box

<html>
  <head>
  </head>
  <body>
  <select required
  		<!-- The following line is the placeholder -->
        <option value="" disabled selected hidden>Choose Gender...</option>
        <option>Male</option>
        <option>Female</option>
    </select>
   <body>
   </html>
Posted by: Guest on December-21-2020
0

How do I make a placeholder for a 'select' box?

<select>
    <option value="" disabled selected>Select your option</option>
    <option value="hurr">Durr</option>
</select>
Posted by: Guest on April-28-2021

Browse Popular Code Answers by Language