Results 1 to 2 of 2

Thread: Need Urgently Help

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    15

    Question 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.


  2. #2
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact