Results 1 to 2 of 2

Thread: program req

  1. #1
    Join Date
    Jul 2013

    program req

    (20 pts) Write an XHTML document that uses text boxes (with appropriate labels) to collect the following information from a student:
     first name (consisting of 2-20 letters, upper or lower case)  last name (consisting of 2-20 letters, upper or lower case)  initial (exactly one letter, upper or lower case)  M number (uppercase M followed by exactly 8 digits)
    There will also be a submit button. When this button is clicked, do appropriate validation on the fields using JavaScript, producing a specific message for the user in an alert window if any field does not validate. If a field is not valid, set the focus to the text box and select its text. If there are multiple invalid fields, you only have to produce a message for one of them. You must use pattern matching appropriately. If all text validates, print an appropriate message acknowledging that validation was successful with the form data included in the message

  2. #2
    Join Date
    Mar 2007
    Drop the class.
    Where used, return should be executed unconditionally and always as the last statement in the function.

    That's my signature, it's not part of the damn post!

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