- Red
- Blue
- Green
Copy link to clipboard
Copied
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):
// Select 2 (shade colour):
What I'm after is something to filter the second select option, after the first select option has been chosen
// Select 1:
// Select 2:
I'm pretty sure this is possible, but not sure how to go about it, any help would be most appreciated.
What you're referring to are called cascading drop-down menus. You either need to store all the values for the second menu in a JavaScript array, or use Ajax to query the database again, based on the first selection. Do a Google search to find further information.
Copy link to clipboard
Copied
What you're referring to are called cascading drop-down menus. You either need to store all the values for the second menu in a JavaScript array, or use Ajax to query the database again, based on the first selection. Do a Google search to find further information.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more