Answers for "how to make placerholder for drop down 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

Code answers related to "how to make placerholder for drop down css"

Browse Popular Code Answers by Language