Hi,
I'm creating a form for estimates. As the user fills in various items on the form, more parts of the form appear to help get all the right information from the customer. I have each section of the form in different tables. I want to have a good way to select the following:
When a customer makes a selection, I want either one table or the other to appear, or both if the final option is selected. Here is a snippet of the code I am using presently:
.:TUCK:.
I'm creating a form for estimates. As the user fills in various items on the form, more parts of the form appear to help get all the right information from the customer. I have each section of the form in different tables. I want to have a good way to select the following:
Code:
<table width="100%" id="theStep2" style="display:none" bgcolor="#ffffff">
<tr>
<td colspan="2">Would you like to:<br>
<select name="desc" size="3">
<option value="ADD">Add New Equipment</option>
<option value="REPL">Replace Equipment</option>
<option value="REPL ADD">Replace and Add Equipment</option>
</select>
</td>
</tr>
</table>
When a customer makes a selection, I want either one table or the other to appear, or both if the final option is selected. Here is a snippet of the code I am using presently:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN">
<HTML>
<HEAD>
<TITLE>Atlas Home</TITLE>
<link rel="stylesheet" type="text/css" href="atlashac.css" />
</HEAD>
<BODY>
<script type="text/javascript" src="validate.js">
</script>
<script language="JavaScript" type="text/javascript">
<!--
function showStep3a(){
document.getElementById("theStep3a").style.display="block";
}
function showStep3r(){
document.getElementById("theStep3r").style.display="block";
}
-->
</script>
<form ENCTYPE="multipart/form-data" action="/2003ofc/index.php" method="post" name="frmSubmission" onSubmit="return validateForm()">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1048576">
<INPUT TYPE="hidden" name="task" value="upload">
<table width="100%" bgcolor="#ffffff">
<tr>
<td><h1><font color="#ff9900">2. Equipment</font></h1></td>
</tr>
</table>
<table width="100%" id="theStep2" style="display:none" bgcolor="#ffffff">
<tr>
<td colspan="2">Would you like to:<br>
<select name="desc">
<option onchange="showStep3a()" value="ADD">Add New Equipment</option>
<option onchange="showStep3r()" value="REPL">Replace Equipment</option>
<option onchange="showStep3r(); showStep3a()" value="REPL ADD">Replace and Add Equipment</option>
</select>
</td>
</tr>
</table>
<table width="100%" bgcolor="#ffffff">
<td><h1><font color="#ff9900">3. Description</font></h1></td>
</tr>
</table>
<table width="100%" id="theStep3r" style="display:none" bgcolor="#ffffff">
<tr>
<td>I would like to replace:<br>
</td>
</tr>
</table>
<table width="100%" id="theStep3a" style="display:none" bgcolor="#ffffff">
<tr>
<td>I would like to add:<br>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><input type="checkbox" value="FAU"> Furnace System</td>
<td><input type="checkbox" value="DUCTS"> Furnace Ducts</td>
<td><input type="checkbox" value="WF"> Wall Furnace</td>
</tr>
<tr>
<td><input type="checkbox" value="DV"> </td>
</td>
</tr>
</table>