Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   bug/problem in autocomplete/autosugessted keyword script in javascript (http://www.go4expert.com/forums/bug-autocomplete-autosugessted-keyword-t27149/)

firoze 14Nov2011 14:44

bug/problem in autocomplete/autosugessted keyword script in javascript
 
1 Attachment(s)
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


All times are GMT +5.5. The time now is 16:24.