I am developing a web page which has a requirement of many autocomplete textboxes. As I am new to javascript, it is very tough for me to make my own autocomplete textbox. So
I recommend to check this:
http://complete-ly.appspot.com/
The simple case should meet your requirements:
var cly = completely(document.getElementById('a-div-wrapping-your-autocomplete-box'); cly.options = [ 'your','array','of','options','(possibly sorted somehow)'];