Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

Students also viewed these Databases questions