Filter a second dropdown list when a value is chosen in the first one
I have a table with two dropdown lists. The first one is the brand which is a WordPress custom post type. The second is the flavors which is also a custom post type.
Brand is the parent of the flavors.
When I choose a brand I need to update the second dropdown list with the flavors of this brand (the children).