Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32816

Re: Alternative and fast option to some very useful jQuery features?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Alternative and fast option to some very useful jQuery features?
Date Sun, 19 Mar 2017 10:53:24 +0000
Organization A noiseless patient Spider
Lines 38
Message-ID <87h92psfkr.fsf@bsb.me.uk> (permalink)
References <c2c625c3-edf6-440a-8460-73d8e3d5c287@googlegroups.com> <87h92srvjd.fsf@bsb.me.uk> <6e364c21-1307-449c-afe1-6c5de62763c6@googlegroups.com> <08927503-fc48-4ab2-835f-21a1d0904e9b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="c226960be774d797d229f9ceabad25b3"; logging-data="20895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vzpd/OQfxprs9XGDJKE2WtChv33l40+c="
Cancel-Lock sha1:6ICyOPA+hVINyPloPvSkQ/nNDcU= sha1:aD0Wu/uhN/OjHSiYri0BoGzZsy0=
X-BSB-Auth 1.3fcba6e45e745db9a559.20170319105324GMT.87h92psfkr.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:32816

Show key headers only | View raw


justaguy <lichunshen84@gmail.com> writes:

> On Sunday, March 19, 2017 at 12:25:12 AM UTC-4, justaguy wrote:
>> On Friday, March 17, 2017 at 7:29:32 AM UTC-4, Ben Bacarisse wrote:
>> > justaguy  writes:
>> > 
>> > > ... for one page, I need to use jQuery's autosuggest feature, and for
>> > > this feature only
<snip>
>> > With HTML5 capable browsers, you can do something very similar simply by
>> > using the "list" attribute, but that may not suit your needs.
>> > 
>> 
>> Good to know.  And say we have the following HTML5 list code:
>> <input list="browsers" name="browser" id="browser">
>>   <datalist id="browsers">
>>     <option value="Internet Explorer">
>>     <option value="Firefox">
>>     <option value="Chrome">
>>     <option value="Opera">
>>     <option value="Safari">
>>   </datalist>
>> How do we reference the selected data option?
>> I attempted to look at the values of id of "browser" and of
>> "browsers" in vain, considering datalist as select, thus, we have
>> options and selectedIndex etc is also getting no where.
>> 
>
> Sorry, my bad.
> document.getElementById('browser').value
> would do.

Sure, but the idea is that the browser will simply suggest possible
items from the list when the user types.  Support for this is not
universal, of course.

-- 
Ben.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-16 18:09 -0700
  Re: Alternative and fast option to some very useful jQuery features? jonas.thornvall@gmail.com - 2017-03-17 01:27 -0700
    Re: Alternative and fast option to some very useful jQuery features? jonas.thornvall@gmail.com - 2017-03-17 01:48 -0700
  Re: Alternative and fast option to some very useful jQuery features? JJ <jj4public@vfemail.net> - 2017-03-17 15:29 +0700
    Re: Alternative and fast option to some very useful jQuery features? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-03-17 14:00 +0100
      Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-18 21:27 -0700
    Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-18 21:03 -0700
  Re: Alternative and fast option to some very useful jQuery features? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-17 11:29 +0000
    Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-18 21:25 -0700
      Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-18 21:32 -0700
        Re: Alternative and fast option to some very useful jQuery features? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-19 10:53 +0000
          Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-19 18:13 -0700
          Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-19 18:49 -0700
            Re: Alternative and fast option to some very useful jQuery features? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-20 11:03 +0100
              Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-21 20:16 -0700
                Re: Alternative and fast option to some very useful jQuery features? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-22 09:12 +0100
                Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-23 15:51 -0700
                Re: Alternative and fast option to some very useful jQuery features? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-03-24 09:15 +0100
            Re: Alternative and fast option to some very useful jQuery features? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-20 10:41 +0000
              Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-20 17:23 -0700
                Re: Alternative and fast option to some very useful jQuery features? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-03-21 01:33 +0000
                Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-21 20:09 -0700
  Re: Alternative and fast option to some very useful jQuery features? Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-03-17 20:11 +0800
    Re: Alternative and fast option to some very useful jQuery features? justaguy <lichunshen84@gmail.com> - 2017-03-18 21:26 -0700
      Re: Alternative and fast option to some very useful jQuery features? Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-03-19 17:39 +0800

csiph-web