Answers for "how can I add placeholder for select in html"

9

placeholder select html

<!DOCTYPE html>
<head>
</head>
<body>
  <select name="food">
    <!-- The following line makes a placeholder -->
    <option value="" disabled selected hidden>select food</option>
    <option value="apple">apple</option>
    <option value="melon">melon</option>
  </select>
</body>
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 "how can I add placeholder for select in html"

Browse Popular Code Answers by Language