Question: Part 1 (6 pts.) You need to create a form (see below) that a user can use to select one sports from four sports options.

 Part 1 (6 pts.) You need to create a form (see

Part 1 (6 pts.) You need to create a form (see below) that a user can use to select one sports from four sports options. Use switch statements for the following cases (see Slide 26 of JavaScript II lecture notes for your reference on switch statements, a form, and an onclick event). Save the web page as IS415HW3-1.html. Upload it to our class assignment directory and publish it on your web site. if (sport == "golf") alert("Golf is played on a golf course."); else if (sport == "tennis") alert("Tennis is played on a tennis court."); else if (sport == "baseball") alert("Baseball is played on a baseball diamond."); else if (sport == "basketball") alert("Basketball is played on a basketball court.")

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!