Answers for "placeholder for a dropdown"

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
1

placeholder in html select

<option value="" selected disabled hidden>Select Here</option>
Posted by: Guest on September-29-2020

Code answers related to "placeholder for a dropdown"

Browse Popular Code Answers by Language