IceManJoe
12-28-2002, 03:55 PM
Hi,
This concerns javascript and ASP so I hope its ok being posted here.
I have 2 tables in a database, tblFruit and tblFruitType
tblFruit has FruitID and FruitDescription
tblFruitType has FruitTypeID, FruitID and FruitTypeDescription
So for example, FruitID 1 could have a FruitDescription of 'Apple' and FruitTypeID 1 could have a FruitTypeDescription of 'Granny Smith' with the FruitID equal to 1.
Basically I have a search form, with 2 dropdown selects on. In the first dropdown it shows all the FruitDescriptions in the database with the option value as FruitID. When a user has selected a fruit description i would like the second dropdown to contain FruitTypeDescriptions for only those with the same FruitID.
I've seen this done before but i'm unsure how to implement. Has anyone done this before and would like to show me whats the best way?
Thanks
This concerns javascript and ASP so I hope its ok being posted here.
I have 2 tables in a database, tblFruit and tblFruitType
tblFruit has FruitID and FruitDescription
tblFruitType has FruitTypeID, FruitID and FruitTypeDescription
So for example, FruitID 1 could have a FruitDescription of 'Apple' and FruitTypeID 1 could have a FruitTypeDescription of 'Granny Smith' with the FruitID equal to 1.
Basically I have a search form, with 2 dropdown selects on. In the first dropdown it shows all the FruitDescriptions in the database with the option value as FruitID. When a user has selected a fruit description i would like the second dropdown to contain FruitTypeDescriptions for only those with the same FruitID.
I've seen this done before but i'm unsure how to implement. Has anyone done this before and would like to show me whats the best way?
Thanks