Hi all
i have build a autocomplete textbox control that works on keyup event in javascript. everytime a keyup is called , a request is send back to server and the suggestion are displayed in div below the textbox.
when enter is pressed,selecte d value comes in textbox. Now the problem is when i pressed enter button event is called. and the list disapears.
To solve this i set it to on keydown event. but the keydown is called twice, i dont why. even when keydown is pressed i dint get the typed word.
Could anyone tell the solution of this one.
Thanks in advance.
Jagwinder Singh
i have build a autocomplete textbox control that works on keyup event in javascript. everytime a keyup is called , a request is send back to server and the suggestion are displayed in div below the textbox.
when enter is pressed,selecte d value comes in textbox. Now the problem is when i pressed enter button event is called. and the list disapears.
To solve this i set it to on keydown event. but the keydown is called twice, i dont why. even when keydown is pressed i dint get the typed word.
Could anyone tell the solution of this one.
Thanks in advance.
Jagwinder Singh
Comment