autosugesstion problem in javascript


i have a javascript code of autosugesstion.i had got it from internet.

it works fine,but the problem whenever i type a word.. and then press enter it automatically takes the closest autosugessted word from the list ...for example

1.the list contains the word "an apple" when ever i type "app" in the textbox and then press enter takes the word "an apple" from the autosugessted list .

example 2..if i type "king"..and then press enter it automatically takes "kingdom"..

hence can any one solve it ?

kindly have a look at attachement.

thanks in advance

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!