Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Alternative and fast option to some very useful jQuery features? Date: Fri, 17 Mar 2017 11:29:26 +0000 Organization: A noiseless patient Spider Lines: 22 Message-ID: <87h92srvjd.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9d4131404d522c00e3bc8fccc6359781"; logging-data="20972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zsaDh2XTX99su9BJf5OBH+i8/3ZHLFnk=" Cancel-Lock: sha1:7XJwLDOjeq2hXNvbVm/p5wpzqVw= sha1:gphj8jemij/IRo8TncIIMFOQGTU= X-BSB-Auth: 1.e38328188f785b1bae85.20170317112926GMT.87h92srvjd.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:32790 justaguy writes: > ... for one page, I need to use jQuery's autosuggest feature, and for > this feature only > For those who have not used jQuery autosuggest, what it does is, to > pull up a list of items/values instantly upon user input of a few > letters of a word or term in the INPUT box (of type text). For > instance, say, I start to type "Mo" it would pull up "Money", > "Monkey", "Month" etc. to let the user to choose from. > > Doable? With pure JS, how do we go about doing this? Sure, but exactly how will depend on where there list comes from and exactly what sort of matching you want to do. It's harder if the suggestions have to come live via HTTP requests. With HTML5 capable browsers, you can do something very similar simply by using the "list" attribute, but that may not suit your needs. -- Ben.