SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Text Box Help

  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    London
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Text Box Help

    I have 3 seperate text boxes in which the user must enter their bank sort code. i would like for the cursor to automatically skip to the second box after the first two numbers have been entered in the 1st box without having to use the tab key.

    Thanks

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could count the number of characters in textbox #1, and then move focus to textbox #2 when num_of_chars > some number
    Of course, this works only if all bank codes have the same length

    I think you can get some useful ideas from this "check max length for textarea" function

  3. #3
    SitePoint Addict BenANFA's Avatar
    Join Date
    Apr 2003
    Location
    Bath, UK
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What ever you do make sure that if required the user can go back and change the value. They wont be too happy if the accidentally input the wrong value but you then wont let them reselect the box to change it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •