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

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!