Answers for "How to add a place holder to a select element"

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 add a place holder to a select element"

Browse Popular Code Answers by Language