Hi;Situation is like this;
I have 3 text field for entering serial number, first one ,2 digit , second one 4 digit and last one 5 digit.
I need after inserting 2 digits in first field ,cursor goes to second field and so on ... how can i do this?
move the cursor upon completion of the first 2 boxes.
Moderator: General Moderators
Re: move the cursor upon completion of the first 2 boxes.
I meant tab goes to other field after completing of each field.thx
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: move the cursor upon completion of the first 2 boxes.
Please no double posting.
You can edit your own posts by clicking on the EDIT button at the lower right of the post.
You can edit your own posts by clicking on the EDIT button at the lower right of the post.
(#10850)
Re: move the cursor upon completion of the first 2 boxes.
There's a property called "tabindex". First Google result got me this page.
Re: move the cursor upon completion of the first 2 boxes.
when the current form element's maxlength has been reached. the user does not have to manually click in or tab to the next field and it goes by auto
Re: move the cursor upon completion of the first 2 boxes.
So what did you mean when you said
Use JavaScript, the onchange event, the value property, and the .length property of strings to find out how long the input is. Then the .focus() method to change focus to the next field.mit wrote:I meant tab goes to other field after completing of each field.thx