<input type="text" ... onkeyup="move_to_next(3, this, 'next_item_id');" />
The move_to_next() function checks the this element and if the length equals the first argument then it puts the focus on the element with the id of the last argument. What I really want to do now is conditionally move the focus depending on which keys are hit.
Is there a way for me to pass which key was hit to my move_to_next() function?
Thanks in advance.