how do we use javascript to only allow selection from the list in question 3 to be made IF the user selected at least 1 check box in question 2?
below is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> Example </title>
<meta http-equiv="Content-Script-Type" content="text/javascript" />
</head>
<body>
<form name="Form">
<h1>Survey </h1>
<p> Please take a minute to fill in the form below. </p>
<ol>
<li> Question 1.
</li>
<li> Q2.Which classes have you attended?
<br />
<input type="checkbox" name="attend" id="aerobics" value="aerobics"/>
<label for="aerobics">Aerobics</label>
<br />
<input type="checkbox" name="attend" id="boxing" value="boxing"/>
<label for="boxing">Boxing</label>
<br />
<input type="checkbox" name="attend" id="circuit" value="circuit"/>
<label for="circuit">Circuit Class</label>
<br />
<input type="checkbox" name="attend" id="weight" value="weight"/>
<label for="weight">Weight Training</label>
</li>
<li> Q3. Which of the above classes has been beneficial for you?
(choose one from the list):
<select class="drop" name="dropdown">
<option value="aerobics">Aerobics</option>
<option value="boxing">Boxing</option>
</select>
</li>
</ol>
</form>
</body>
</html>
I really have no idea how to do that. can anyone pls help, thanks.