Skip to content Skip to sidebar Skip to footer

Select Tag With 1000 Options - Performance Hit

I am using a plugin called Chosen which basically adds searching to a select html object. I load the results from an ajax page. However I have a lot of options appended to the sel

Solution 1:

Instead of <select> you could use <input> + <datalist>, that handles 1000+ options pretty well.

jsfiddle

<inputtype="text"list="your-data-list"/><datalistid="your-data-list"><optionvalue="1">Option 1</option><optionvalue="2">Option 2</option>
    ...
    <optionvalue="9999">Option 9999</option></datalist>

Post a Comment for "Select Tag With 1000 Options - Performance Hit"