Filter option in dropdown boxes

Associate
Joined
22 Nov 2007
Posts
1,713
Location
Staffordshire
Hey guys,

I've currently got a php script that selects data from a database and then populates two dropdown boxes. What I would like to do is use the options from the first dropdown box to filter whats available in the second dropdown box.

For instance, if in the first box I select Hats, I want the second box to display different colours hat, such as Black Hat.

I'm not sure how I would do this, so any pointers will be a great help.
 
Back
Top Bottom