Question: Part 1: Modify this page so that when the user clicks out of the txtName field (i.e. when the focus is lost or the text

Part 1: Modify this page so that when the user clicks out of the txtName field (i.e. when the focus is lost or the text field is blurred), you do a simple validation: Retrieve the value that the user entered. Output (to a nearby div section) a greeting to the user using their name (e.g. Hello, Bob). If they did not enter anything in the text field (i.e. if the value is an empty string), output to the same section: You must enter a name. When the user re-enters the text field (i.e. when it regains the 'focus' hint hint), clear out whatever message was in that div section previously.

Part 1: Modify this page so that when the user clicks out

file://users/anna/Desktop/T238/AssignmentS/Anna.Markiewicz-a5.html Some Hyperlinks cEn Some Lists Fabulous Fruit Apple Orange Strawberry Varied Veggies Broccoli . Asparagus Cauliflower ome Form Elements hat is your name? Bod low old are you? Enter your age Do you agree to our terms of service?o Button #1 Ill Button #2 lll Button #3 Hello, Bob file://users/anna/Desktop/T238/AssignmentS/Anna.Markiewicz-a5.html Some Hyperlinks cEn Some Lists Fabulous Fruit Apple Orange Strawberry Varied Veggies Broccoli . Asparagus Cauliflower ome Form Elements hat is your name? Bod low old are you? Enter your age Do you agree to our terms of service?o Button #1 Ill Button #2 lll Button #3 Hello, Bob

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!