have a look at

http://jqueryui.com/autocomplete/