Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have the following HTML code, and I need to creat a method that executes when the submit buttion is clicked. The mothod should test
I have the following HTML code, and I need to creat a method that executes when the submit buttion is clicked. The mothod should test for invalid workshop combinations. Combinations are: Workshop B (Covers session 1 and 2) if someone who selects Workshop B they should not take any Workshops in session 2.
Any help would be grateful.
<form action="thankyou.html" method="get">
<div id="workshopInfo"> <fieldset> <legend> Workshops: legend> <label id="workshopA"> Session1:<br/> <input type="radio" name="session1" value="wsA" checked title="wsA"> Workshop A label> <br/> <label id="workshopB"> <input type="radio" name="session1" value="wsB" title="wsB"> Workshop B label> <br/> <label id="workshopC"> <input type="radio" name="session1" value="wsC" title="wsC"> Workshop C label> <br/> <label id="workshopD"> Session 2:<br/> <input type="radio" name="session2" value="wsD" checked title="wsD"> Workshop D label> <br/> <label id="workshopE"> <input type="radio" name="session2" value="wsE" title="wsE"> Workshop E label> <br/> <label id="workshopF"> <input type="radio" name="session2" value="wsF" title="wsF"> Workshop F label> <br/> <label id="workshopG"> Session 3:<br/> <input type="radio" name="session3" value="wsG" checked title="wsG"> Workshop G label> <br/> <label id="workshopH"> <input type="radio" name="session3" value="wsH" title="wsH"> Workshop H label> <br/> <label id="workshopI"> <input type="radio" name="session3" value="wsI" title="wsI"> Workshop I label> fieldset> div>
<div id="submitButton"> <fieldset> <legend> Submit: legend> <input type="submit" value="submit" title="Submit"/> fieldset> div> form>
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