quick please please help cursor automatically to the second textbox

Discussion in 'JavaScript' started by kako0000000, Dec 15, 2011.

  1. #1
    hello all member help me quick
    i am create a one form in 10 texbox. i am copy other web Url link when i am paste in textbox cursor not move automatically to the second textbox. and when paste the second textbox the cursor move the not third textbox. please help me how can move automatically cursor textbox only past. not mixmim leg using.
    send completely code java script and input code quickly thanks
     
    kako0000000, Dec 15, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    
    <input id="first" type="text" onChange="document.getElementById('second').focus();" />
    <input id="second" type="text" onChange="document.getElementById('third').focus();" />
    etc.
    
    Code (markup):
    Or you can direct them to a function that counts the number of characters and focuses on the next textbox if the number is greater than what you want.
     
    Rukbat, Dec 15, 2011 IP
  3. kako0000000

    kako0000000 Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    not work send completely code with java scripts. thanks
     
    kako0000000, Dec 15, 2011 IP