Answers for "contact form select placeholder"

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
2

select2 placeholder

$(".js-example-placeholder-single").select2({
    placeholder: "Select a state",
    allowClear: true
});
Posted by: Guest on April-16-2020

Browse Popular Code Answers by Language