To move the cursor, you have to set focus() on the element.
$("#fname").focus()
Of course to move to the next you might have to find it by it's tab index
$('input[tabindex=' + tabIndex + ']').focus();
On Thu, Jan 14, 2010 at 7:09 AM, Leeoniya <[email protected]> wrote:
> not sure if i am doing this right, but it doesnt seem to work:
>
> $("#fname").simulate("keydown", {keyCode: 9});
>
> firebug shows the simulated keydown event identical to a real one in
> every way. but the cursor does not move to the next tabindex field. am
> i missing something?
>
> thanks,
> Leon
>
> --
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>
>
--
Best regards,
Balázs Suhajda
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.