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

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -