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
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