Answers for "disable first option select html"

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 "disable first option select html"

Browse Popular Code Answers by Language