johnsmith johnsmith - 3 years ago 247
jQuery Question

Bootsrap mulitple select box Limit results and scroll to load more

I am using bootstraps multiple select box, I am populating the select box with about 5000 options that the user can select. (it is very slow as I would have expected it to be). Is there a way to limit the number of options displayed to say 1000 and then if the user wants to see more options they can scroll down further within the select box and another 1000 options is loaded. Thank you in advance.

Answer Source

If you have 5k options for a drop-down, then it is advisable to use Typeahead of bootstrap. It will be helpful because it will fetch options based on the characters which user has typed in. So it will not make your page to load slowly because no option data will be fetched on page load.

Check the typeahead plugin here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download