una / YouMightNotNeedJS

http://YouMightNotNeedJs.com
MIT License
1.85k stars 65 forks source link

Typeahead Component? #42

Open jpdevries opened 8 years ago

jpdevries commented 8 years ago

The HTML5 <datalist> component is really exciting to me. You can create a familiar typeahead component without any JavaScript! And with a bonus if you are clever with how you structure the markup it can be backwards compatible as a <select> as well.

I'd be glad to send a PR for this.

Example https://jpdevries.github.io/datalist/

Note: <datalist> can also be used with <input type="range"> to create "snap points".

una commented 8 years ago

ooooh I love this! Would you like to submit a PR or I could add it

jpdevries commented 8 years ago

Isn't it neat?! I'll try to wip up a PR.

Haroenv commented 8 years ago

http://caniuse.com/#feat=datalist