+1  A: 

The control you are looking for is called a suggester. Try searching google for "ajax suggestion". You will find a few tutorials on how to do it. Here's one: link

SorinV
I would rather use the javascript I already have.
Cool Hand Luke UK
Then look at how the example JavaScripts work and adapt it to your script. This isn't a place to get people to do your coding for free.
ceejayoz
I wasn't asking for that, just sugesstions.
Cool Hand Luke UK
A: 

You probably need to make each returned search result JavaScript-enabled so that with an OnClick it fills its value into the input text. Having the text-input element identified with an id-property would help targeting it a bit. I'm sure that you can figure out the rest. I've started to like JQuery with exactly these kinds of tasks.

You also probably want to have the results to have the CSS rule "cursor: pointer" so that it looks like a clickable item.

Henrik Paul
Thanks for you answer however I have only really come across Javascript with this and I am using a something our lecture gave to us to figuring it out is hard, I don't really know and JS.
Cool Hand Luke UK