Question
HTML5/Javascript Problem:Given an empty javascript file and the bullet points below, what is the source code and/or formatting required to complete the bulletpoints for this
HTML5/Javascript Problem:Given an empty javascript file and the bullet points below, what is the source code and/or formatting required to complete the bulletpoints for this step? (IE: bullet one would need
Step 2. Add javascript functionality to make the survey page obnoxiously interactive: After the user enters the phone number, pop up a Good Luck alert message use onblur and name your function goodLuck() Add an empty paragraph just below the name field. After the user enters the name, populate the new paragraph with the text Have we met before, ? Add an empty paragraph just below the select field. After selecting a favorite dish, change the background color of the select paragraph and the new paragraph to a new color, and add text to the new paragraph that says Good choice. Add an empty paragraph just below the restaurant rating field. When the user selects 4 or below, add text to the new paragraph that says Are you sure?; when the user selects 6 or above, use the text Great. Optional: Provide a different message for each number rating. When the user clicks Reset, show an alert that says Get it right this time! and change the background of the page to a bright color. Add an empty paragraph just below the Submit button area. When the user clicks Submit, first check that the phone number is not empty. If it is empty, add text to the paragraph that says Tricked you--phone number is required! and prevent the submission. The text should be in red color, with a gray background for the paragraph. If the phone field is NOT empty, then add text to the paragraph that says Thanks--can I call you tomorrow?. You choose the colors for this one, but make it different than the red and gray.
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