tanneddevil
Programmer
i know its not that hard but..what can i say..
i want to use an array of names to populate a drop down list embedded in the html code
anyone have any suggestions on how to go about doing this
i know its not the full code ..but its just for a rough idea
thanks
example:
<head>
var cat = new Array("Printers","Telephone","Laptops","Email")
</head>
<body>
<body>
<form method="post" enctype="text/plain">
<table border=0>
<tr valign="top">
<script type="text/javascript">
<select name="category">
for(i=0; i< cat.length; i++
{
document.forms[0].category.option = cat
}
</select>
</script>
</body>
i want to use an array of names to populate a drop down list embedded in the html code
anyone have any suggestions on how to go about doing this
i know its not the full code ..but its just for a rough idea
thanks
example:
<head>
var cat = new Array("Printers","Telephone","Laptops","Email")
</head>
<body>
<body>
<form method="post" enctype="text/plain">
<table border=0>
<tr valign="top">
<script type="text/javascript">
<select name="category">
for(i=0; i< cat.length; i++
document.forms[0].category.option = cat
}
</select>
</script>
</body>