7 ms·
If you want not use Angular or another other framework, a fully functional autocomplete may be made with 10 lines of JavaScript. See demo: http://www.scriptol.c
by scriptproof 12y ago
If you want not use Angular or another other framework, a fully functional autocomplete may be made with 10 lines of JavaScript. See demo: http://www.scriptol.com/javascript/autocomplete.php http://www.scriptol.com/javascript/autocomplete.php
Adding a scrolling list of choices would requires two or three more lines.
- spankalee 12y agoCool but the demo isn't working in Chrome for me. It would be nice to wrap something like that in a web component so that it'd be trivial to reuse without a framework.
- ludwigvan 12y agoWe use Twitter's typeahead (not the one in bootstrap, separate project), pretty pleased with it: http://twitter.github.io/typeahead.js/ http://twitter.github.io/typeahead.js/