I noticed that in html5 I can write something like:
<datalist id="list1">
<option value="A">
<option value="B">
</datalist>
input1: <input list="list1">
input2: <input list="list1">
That creates two distinct input elements with the same option list.
I'd like to do the same using the classic select element.. I have a web page where I show a list of editable data in rows, and each row has (beside others) a select element. The option list is the same for every select element. If I could define the option list only once, the HTML would be much shorter. I'm thinking to something like :
<select list="list1">
</select>
but it doesn't work.