Hello.

Say I had a select box in a form that listed clothes... T-Shirts, Trousers, Hats. And I had another select box thats contents depended on what was selected in the first select box... How would I achieve this?

Say I selected 'T-Shirts' in the first select box... I would then like the second select box to display options for those T-Shirts, such as Small, Medium, Large. Again, if I select 'Hats' in the first select box... I would then like the second select box to display options for those Hats, such as Cotton, Wool.

How would I achieve this in Javascript?
Many thanks!