html5 - HTML Form: List - Number of elements shown -


in html form, have text input follows:

<input list="bmunits" name"bmunitid" value"<?php echo $chosenbmu ?>" autocomplete="off"> <datalist id="bmunits"> <option value="1"> ... <option value="300"> </datalist> 

when user types drop down shows datalist goes off screen, there way define number of elements in datalist shown @ once?

it seems not possible. current <datalist> tag not support special html attribute nor can use css style dropped list. means browser can decide how dropped list like. example, ie (now called ms edge) show scrollbar if list long, chrome won't. can waiting until browsers support that.

alternativly, can use jqueryui combobox or chosen more flexible drop list.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -