This is a problem I'm having in actionscript, but just as easily applies to Javascript or Jquery. Basically, I have 3 select boxes, e.g.:
<select id="color">
<option>Red</option>
<option>Blue</option>
<option>Green</option>
</select>
<select id="size">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<select id="type">
<option>A</option>
<option>B</option>
<option>C</option>
</select>
When a color is chosen - I want the size and type to filter out only those which are available for that color. Further, when a user then chooses a size, the type should reduce further, and the color should also be filtered according to the size.
I've been wrestling with this problem for awhile, and have yet to find an elegant solution for it. Does anybody have any clues for an approach?