Hello,
Wonder if there is a way to have my Drop-Down box selections create individule single row/dual colume tables for each item that was selected from the drop-down box.
An example would be:
1: I selected 3 items from my drop-down box at one time (my drop-down box allows multiple selections).
2: I click a button call "Create Template" and three new single row/dual colume tables are created with the names if the items.
Here is what I have so far, but need a little help.
Notice I have added the three tables in to show how it should look but this is for information only as these should be created automaticaly.
Thanks for any help.
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="javascript">
function removeRow(src)
{
document.getElementById(src).style.display = "none";
}
</script>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="3" name="D1" multiple style="width: 200">
<option>Dogs</option>
<option>Cats</option>
<option>Horses</option>
</select></p>
</form>
<p><input type="submit" value="Create Template" name="B1"></p>
<p> </p>
<p> </p>
<p> </p>
<table id="table1" style="table-layout:fixed" border="1" bgcolor="#CCCC99" width="1470" height="10">
<tr>
<td width="67">
<p align="center"><input type="button" value="Delete" onclick="removeRow('table1');" /></td>
<td>
<span lang="en-gb"><b><font face="Arial" size="4" color="#336699">Dogs</font></b></span></td>
</tr>
</table>
<p> </p>
<table id="table2" style="table-layout:fixed" border="1" bgcolor="#CCCC99" width="1470" height="10">
<tr>
<td width="67">
<p align="center"><input type="button" value="Delete" onclick="removeRow('table2');" /></td>
<td>
<span lang="en-gb"><b><font face="Arial" size="4" color="#336699">Cats</font></b></span></td>
</tr>
</table>
<p> </p>
<table id="table3" style="table-layout:fixed" border="1" bgcolor="#CCCC99" width="1470" height="10">
<tr>
<td width="67">
<p align="center"><input type="button" value="Delete" onclick="removeRow('table3');" /></td>
<td>
<span lang="en-gb"><b><font face="Arial" size="4" color="#336699">Horses</font></b></span></td>
</tr>
</table>
</body>
</html>