Answers for "put placeholder to a select"

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

Browse Popular Code Answers by Language