View Single Post
Old 06-30-2005, 01:26 AM   #9 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
redhead is on a distinguished road
Would somethign like this do ?
Code:
...
<script language="javascript">
<!--
var description = new array (
<% dim i 
for i=lbound(arrDescription) to ubound(arrDescription)%>
"<%=arrDescription(i)%>",
""
);

function PopulateDesc(prod)
{
     document.myForm.description.value=description[0 + prod];
}
// -->
</script>
...
<form name="myForm">
<select name="products" id="products" language="javascript" onChange="PopulateDesc(myForm.products.value)">
<% dim j 
for j=lbound(arrProducts) to ubound(arrProducts)%>
<option value="<%=j%>"><%=arrProducts(j)%> </option>
<%next%>
</select>
<input type="text" name="description" value="">
</form>
...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote