I have a situation where there are 3 different drop-downs - Drop-down A, Drop-down B, Drop-down C.
Depending on the selection made in Drop-down C, additional dropdowns will be populated.
Let's consider another set of 10 drop-downs numbered from 1 to 10 that will appear based on the choice made in Drop-down C.
- If I choose item 1 from Dropdown C, then DropDown 1, 2, 4, 6 should be displayed.
- If I select item 2 from Dropdown C, then DropDown 1, 2, 5, 6, 8 should be displayed.
There are many such scenarios like this.
Once the necessary dropdowns are populated and shown on the page, only the selected dropdown values should be saved to the database upon submission.
If any dropdown does not have any options, it should not be visible on the page.
Jsfiddle link : jsfiddle
Can you provide assistance on how to achieve this?