Question
Javascript: Create a form with 3 inputs for name, favorite number, and email. There should also be a button for submitting the form. When the
Javascript: Create a form with 3 inputs for name, favorite number, and email. There should also be a button for submitting the form. When the user submits the form, use innerHTML to tell them what they typed into the form. "Your name is Kevin, your favorite number is 5, and your email is kevin@kevin.com." If any of the form inputs are empty, use innerHTML to tell the user to add values to the form (don't output their info to the page until all 3 areas are filled in). If the number they entered is not a number, tell them to enter a valid number. You will need to use parseInt() on the number value to convert it from a string to a number. You will also need to use an if statement with the isNaN() method to check if the number is actually a number.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started