Answers for "how to disbale first option in form::select"

0

html disable first option

<select name="name">
  <option disabled="disabled" selected="selected">Select an option.</option>
  <option>A</option>
  <option>B</option>
  <option>C</option>
</select>
Posted by: Guest on March-23-2022
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 disbale first option in form::select"

Browse Popular Code Answers by Language