html5 - In HTML: Different <select> referencing the same list of options -
is possible <select>
-lists reference same list of options, similar <input>
<datalist>
?
i generate list of several entries, (among other things) user selects value of dropdownlist. options in list same each entry, prefer it, if list of options doesn't need re-added each dropdownlist.
i can't use <input>
<datalist>
, since user may choose available entries.
you using jquery easily,
<datalist id="mylist"> <option value="a"> <option value="b"> <option value="b"> </datalist> <select class="someselect"> <select class="someselect"> $(".someselect").html( $("#mylist").html() );
this replace select list datalist
Comments
Post a Comment