View the step-by-step solution to:

Question



A.       Form: 

Use the correct HTML tags to define a form in the HTML

document that will allow a user to enter information about members of a club that learns new Internet Technologies. The form should have the following:

A label for each textbox of "Full name", "Date of birth", and "Gender".

Three text boxes of full name, date of birth and gender. 

A text area (you can make it 10 lines and 100 character positions but different dimensions are okay)

Three buttons for NEXT, DISPLAY, and CLEAR

B.       JavaScript: 

Declare an array that will store name-date-gender entries for each member. Feel free to choose a good name for your array.

 

Write two functions as follows:

A saveMember function that will get the text typed in the text boxes and assign to an array position.

A displayMembers function that takes all members in the array and assign them to the text area, one at a time using a loop.

 

Input validation: 

All years should be less than 1998 (we don't want members who are less than 18 years old)

 

Event handling - on button click

Button clicks should be handled as follows:

When the NEXT button is clicked, the saveMember function should be called (invoked)

When the DISPLAY button is clicked, the displayMembers function should be called (invoked)

When the RESET button is clicked, the text boxes should be cleared and the array should be erased

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes