Skip to content

no-gravity/0g-typeahead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0g-typeahead

A lean typeahead library. Single file. Less then 400 lines of code.

It is a continuation of bootstrap-typeahead.js by Twitter.

Currently it needs jQuery. This dependency should be removed at some point.

Implementation:

 Country: <input name=country type=text>

 <script>
  $('input[name=country]').typeahead({source:  keyPress});

  function keyPress(query,process)
  {
   process(['Andorra','Argentina','Australia',...]);
  } 
 </script>

Result:

Try the demo

About

A lean typeahead library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published