Forms: Select options, filtered by another select option
Hey chaps, hope someone can help with this:
I have a PHP form, with a couple of Select menus, which are populated from two SQL tables:
// Select 1 (main colour):
- Red
- Blue
- Green
// Select 2 (shade colour):
- Light Red
- Dark Red
- Light Blue
- Dark Blue
- Light Green
- Dark Green
What I'm after is something to filter the second select option, after the first select option has been chosen
// Select 1:
- Red
// Select 2:
- Light Red
- Dark Red
I'm pretty sure this is possible, but not sure how to go about it, any help would be most appreciated.
