Display selected option into a Div
Posted: 25 Nov 2020, 14:32
How can I make that when an option from dropdowna <select> list is selected, the value of that option be displayed into a Div.
I have this html code, with the list of options and the Div tag:
I have this html code, with the list of options and the Div tag:
Code: Select all
<select id='drink'>
<option value=''>Which drink would you like?</option>
<option>Latte</option>
<option>Capuccino</option>
<option>Americano</option>
<option>Tea</option>
</select>
<div id='output'></div>