How do I set an un-selectable default description in a select (drop-down) menu in HTML?

后端 未结 7 1090
情话喂你
情话喂你 2020-12-08 02:16

I have a drop down where the user selects a language:






The required attribute in makes it mandatory to select an option from the list.

value="" inside the option tag combined with the required attribute in select tag makes selection of 'Select' option not permissible, thus achieving the required output

提交回复
热议问题