I am trying to build a form with many options depending on each other.
I purchased a script called dynamic list options with which I create arrays of options that populate select boxes like this:
<select name="productSw ags" onChange="Popul ateOptions(this , 'productFabric' );">
I can also create arrays like this:
var Array4 = new Array(PleaseSel ect,'[ArrayFabric1]Single Swag','[ArrayFabric2]Two Swags')
This way I can populate each select box depending on the option selected and have numerous options depending on each other.
My question now is: I want to be able to populate more than one select box at once. I can do this:
<select name="productSw ags" onChange="Popul ateOptions(this , 'productFabric' );PopulateOptio ns(this, 'productTrim')" >
but doing so will populate both select boxes with the same options. What I am trying to do is populate each select box with a its own set of options.
I want to set up the arrays in a certain way that each populateOptions will
only put in the options that belong to it.
Can somebody help me do this?
This is the page I am working on so you can see what I mean:
Customize your own swag valance
Thank you
Judy
I purchased a script called dynamic list options with which I create arrays of options that populate select boxes like this:
<select name="productSw ags" onChange="Popul ateOptions(this , 'productFabric' );">
I can also create arrays like this:
var Array4 = new Array(PleaseSel ect,'[ArrayFabric1]Single Swag','[ArrayFabric2]Two Swags')
This way I can populate each select box depending on the option selected and have numerous options depending on each other.
My question now is: I want to be able to populate more than one select box at once. I can do this:
<select name="productSw ags" onChange="Popul ateOptions(this , 'productFabric' );PopulateOptio ns(this, 'productTrim')" >
but doing so will populate both select boxes with the same options. What I am trying to do is populate each select box with a its own set of options.
I want to set up the arrays in a certain way that each populateOptions will
only put in the options that belong to it.
Can somebody help me do this?
This is the page I am working on so you can see what I mean:
Customize your own swag valance
Thank you
Judy
Comment