-
Junior Member
Need Urgently Help
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.
-
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules