Enter Problem in Autocomplete Textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jagwinderwalia
    New Member
    • Nov 2006
    • 1

    #1

    Enter Problem in Autocomplete Textbox

    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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you post the relevant code - it'd make it easier to help solve the problem.

    Comment

    Working...