Afternoon all,
Im having problems with some multiple dropdownlists on an asp page.
(2nd and 3rd dropdowns are "No Preference" by default)
Im retrieving manufacturer & shortmodel into one array, then shortmodel & longmodel into a second array.
At the moment when changing the selection of dropdownlist1 you get the shortmodels associated with the selected manufacturer in the second box.
I need to now make it so that when a shortmodel is selected the third dropdownlist shows the longmodels associated with that shortmodel.
Im getting 'object doesnt support this property or method' errors on the line where Im calling the 'derivative' function (when choosing a selection from the second menu)
Code:
function derivative(){
rowNo = 1;
document.the_form.derivative.options.length=1;
if (document.the_form.model.selectedIndex!=0)
{
for (var t=0; t < <%=DCounter%>; t++)
{
TheText = derivativeoption [0];
if (TheText == document.the_form.model.options[document.the_form.model.selectedIndex].value)
{
document.the_form.derivative.options[rowNo]=new Option(derivativeoption [1],derivativeoption [1]);
rowNo ++;
}
}
}
else {
document.the_form.derivative.options[rowNo]=new Option("No Preference","");
}
document.the_form.derivative.options[0].selected=true;
}
The 3 dropdownboxes are name 'manuf', 'model' and 'derivative'
any help much appreciated,
Pete