Answers for "how to disable first option in select"

0

disable first option in select

<select>
   <option hidden>Choose</option>
   <option>Item 1</option>
   <option>Item 2</option>
</select>
Posted by: Guest on September-20-2021
0

Disable form first dropdown option

<!-- disable form first dropdown option -->
<script type="text/javascript">
  $( "form option:first-child" ).attr("disabled","disabled");
</script>
Posted by: Guest on August-16-2021

Code answers related to "how to disable first option in select"

Browse Popular Code Answers by Language