Question: 1) Create a blank HTML document with a basic structure. 2) Inside the body section, write code to create a form with one text box

1) Create a blank HTML document with a basic structure.

2) Inside the body section, write code to create a form with one text box called txtCountry, a label for the textbox, and a submit button. Make a list of values such as The United States of America, Republic of France, The United Kingdom, etc. for the text box so that the values will show when the text box is focused.

6) Write JavaScript code so that when the button is clicked, it checks if the txtCountry textbox is empty or not. If it is empty, use a message box to alert so. Otherwise, replace with the united states of america

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!