i know theres a way to have javascript create this form...
ultimately, theres to be several pull-downs each with the options 1-10.
what am i missing here? i cant seem to set the options.length property on the js created selects...
can anyone help?
maybe i should just take a break...
heres the deal:
<html>
<head>
<title></title>
<!-- ** HEAD SCRIPT ** -->
<script language='javascript'>
function make_form()
{
for (s=0;s<6;s++)
{
document.write
("\n<select name='duh["+s+"]'>\n</select>");
}
document.write("\n</form>\n");
}
<!-- ** 10 OPTIONS EACH ** -->
function ten_each()
{
for (s=0;s<6;s++)
{
document.work_form.duh.options.length=3;
}
}
<!------------ ** TRY A LITTLE TEST ** ------->
function test_it()
{
document.work_form.testing.options.length=3;
document.work_form.duh[0].options.length=3;
}
</script>
</head>
<body>
<form name="work_form">
<input type="button" value=http://www.webdeveloper.com/forum/archive/index.php/"Make Form!" onclick="make_form();">
<br><br>
<select name="testing">
</select>
<br><br>
<input type="button" value="test it!" onclick="test_it();">
<br><br>
any help appreciated
skip
ultimately, theres to be several pull-downs each with the options 1-10.
what am i missing here? i cant seem to set the options.length property on the js created selects...
can anyone help?
maybe i should just take a break...
heres the deal:
<html>
<head>
<title></title>
<!-- ** HEAD SCRIPT ** -->
<script language='javascript'>
function make_form()
{
for (s=0;s<6;s++)
{
document.write
("\n<select name='duh["+s+"]'>\n</select>");
}
document.write("\n</form>\n");
}
<!-- ** 10 OPTIONS EACH ** -->
function ten_each()
{
for (s=0;s<6;s++)
{
document.work_form.duh
}
}
<!------------ ** TRY A LITTLE TEST ** ------->
function test_it()
{
document.work_form.testing.options.length=3;
document.work_form.duh[0].options.length=3;
}
</script>
</head>
<body>
<form name="work_form">
<input type="button" value=http://www.webdeveloper.com/forum/archive/index.php/"Make Form!" onclick="make_form();">
<br><br>
<select name="testing">
</select>
<br><br>
<input type="button" value="test it!" onclick="test_it();">
<br><br>
any help appreciated
skip