It is called the boolean attribute in HTML. In case you're still looking for an answer, here's how I would do it. soon as the page loads: The value attribute has the following browser support for each element: Get certifiedby completinga course today! html body form fieldset#custom div.select:hover, html body form fieldset#custom div.select[data-open], html body form fieldset#custom div.select[data-open] datalist, html body form fieldset#custom div.select datalist, html body form fieldset#custom div.select datalist div.option, html body form fieldset#custom div.select datalist div.option:hover, The tag is put into the <select> tag. Connect and share knowledge within a single location that is structured and easy to search. The text that's inserted between the opening and closing tags is what the user sees. Making statements based on opinion; back them up with references or personal experience. Using value. 504), Hashgraph: The sustainable alternative to blockchain, Mobile app infrastructure being decommissioned, Change a options value when selected from options, Different text in select options then the one displayed. If using jQuery is an option: Definately can't be done in HTML and CSS.. JS is necessary here. The <select> element is most often used in a form, to collect user input. dropdown list selected value jquery. The