1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

bug/problem in autocomplete/autosugessted keyword script in javascript

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

  1. firoze

    firoze New Member

    Joined:
    Nov 14, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi,

    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