Results 1 to 2 of 2

Thread: Change focus from Year Month Day

  1. #1
    Join Date
    Mar 2013

    Change focus from Year Month Day

    I have three input fields

    <input type ="text" name="year" maxlength="4">

    When the user has finished inputting the year, I want the cursor to go automatically to the month then the day.

    <input type ="text" name="month" maxlength="2">

    <input type ="text" name="day" maxlength="2">

    I'm sure there are load sof code out there, I cannot find the right google search term to find it

  2. #2
    Join Date
    Feb 2012
    You will have to trap each keystroke, and preferrably retain only the numeric ones for the year. When a valid year is entered, switch the focus to the month field, blurring the year text box.

    That is the direction to take, the code, well...
    Knowledge is that which can be shown to be the case, and Intelligence is the method one uses to deploy the demonstration of what is the case, everything else is Information.

    For a stronger Text reading try:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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