HTML - default option to be disabled

0 votes
192 views
added Mar 20, 2019 in HTML by LC Marshal Captain (25,790 points)
<!--add selected and disabled attribute to option -->
<option selected="" value="" disabled>Select states</option>
<option value="Kuala Lumpur">Kuala Lumpur</option>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...