How to show disable HTML select option in by default?

Spread the love

Sometimes, we want to show disable HTML select option in by default.

In this article, we’ll look at how to show disable HTML select option in by default.

How to show disable HTML select option in by default?

To show disable HTML select option in by default, we set the disabled attribute.

For instance, we write

<option selected="true" disabled="disabled">Choose Tagging</option>

to add the disabled attribute to the option element to disable the option.

Conclusion

To show disable HTML select option in by default, we set the disabled attribute.

Leave a Reply

Your email address will not be published. Required fields are marked *