Prepare for your Next Interview
This is a discussion on Need Urgently Help within the JavaScript forums, part of the Web Development category; Hi I am javacript function in aspx page function check() { var letters = window.document.forms(0).txtItem1.value.length+1; if (letters { window.document.forms(0).txtItem1.focus() } else { window....
|
|||
|
Hi
I am javacript function in aspx page function check() { var letters = window.document.forms(0).txtItem1.value.length+1; if (letters <= 16) { window.document.forms(0).txtItem1.focus() } else { window.document.forms(0).txtItem2.focus() } } I want to move focus on 24 textbox( txtItem1 to txtItem24) can any one tell me how should i move focus on 24 Textbox. when user eneterd maxlength in each textbox. as above. |
| Sponsored Links |
|
|||
|
Re: Need Urgently Help
What i understood from your question is, the moment user tries to enter more then the maximum allowed as per your logic the Focus should move to text24 field.
If i am correct then try with , use onkeypress="check()" in your field text1. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL DBA needed urgently | niruinfotech | SQL | 0 | 07-09-2007 02:22 AM |