Skip to content

Instantly share code, notes, and snippets.

@tzi
Created June 26, 2012 09:40
Show Gist options
  • Save tzi/2994690 to your computer and use it in GitHub Desktop.
Save tzi/2994690 to your computer and use it in GitHub Desktop.
How to add an autocompletion in javascript

If you want to try it, go here

This autocompletion script is made in pure javascript. So it could easily be used in a widget.

This code is inspired by this article

(function(){
// TODO
})();
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to add an autocompletion in javascript</title>
</head>
<body>
<script type="text/javascript" src="autocomplete.js"></script>
<body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment