rjusa
11-17-2003, 09:02 AM
I know the following routine works - it allows me to make multiple selections from a drop down and write the correct choices:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 3</title>
<style type="text/css">
body {font-family:arial; font-size:10pt}
.directions {text-transform: capitalize}
.character {text-transform: capitalize}
</style>
</head>
<body>
<form name="form1">
<select name="select1" size="10" multiple>
<option name="option1" value="Alabama">Alabama</option>
<option name="option2" value="Alaska">Alaska</option>
<option name="option3" value="Arizona">Arizona</option>
<!--continues down to Wyoming-->
</select>
</form>
<script language="Javascript">
for(i = 0; i < 50; i++) {
if (document.form1.select1.options[i].selected)
document.write("" + document.form1.select1.options[i].value + "<br/>");
}
</script>
</body>
</html>
How would I reference these choices if I wanted to put them in a table rather than write them?
Thanks,
Ron
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 3</title>
<style type="text/css">
body {font-family:arial; font-size:10pt}
.directions {text-transform: capitalize}
.character {text-transform: capitalize}
</style>
</head>
<body>
<form name="form1">
<select name="select1" size="10" multiple>
<option name="option1" value="Alabama">Alabama</option>
<option name="option2" value="Alaska">Alaska</option>
<option name="option3" value="Arizona">Arizona</option>
<!--continues down to Wyoming-->
</select>
</form>
<script language="Javascript">
for(i = 0; i < 50; i++) {
if (document.form1.select1.options[i].selected)
document.write("" + document.form1.select1.options[i].value + "<br/>");
}
</script>
</body>
</html>
How would I reference these choices if I wanted to put them in a table rather than write them?
Thanks,
Ron