bug/problem in autocomplete/autosugessted keyword script in javascript

Discussion in 'JSP' started by firoze, Nov 14, 2011.

  1. firoze

    firoze New Member

    Nov 14, 2011
    Likes Received:
    Trophy Points:

    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"..so when ever i type "app" in the textbox and then press enter ..it takes the word "an apple" from the autosugessted list .

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

    actually i am looking for this solution :
    it should only take the word from autosugesstion list if selected from arrow key or mouse
    other wise it should take word from textbox which is typed by user

    hence can any one solve it ?

    kindly have a look at attachement.

    thanks in advance

    Attached Files:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice