I needed to limit the number of options in a select
dropdown, and I came across this answer, which showed a way - using javascript - do it.
But I started to wonder: Is there a way do also limit the number of options in a input list
If I wanted to only show three items (and a scroll bar) in this example:
<input list="browsers">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Google Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
Would be there a way to do it?
Thanks!