Hello, I have a table with a few thousands records (products). Each product has a 4 different categories:
CAT1 CAT2 CAT3 CAT4
I wonder if is there a method, or what is the best practice, to dynamically retrive the available categories based on the categories already selected (using Ajax). Example:
if CAT1 = green
all the products with CAT1 = green
will have a series of CAT2
categories and so on. I would like to know which are the CAT2 CAT3 CAT4 categories whose products match CAT1 = green
. Once I set a value or CAT2
as well I would like to do the same based on CAT1 && CAT2
values.
Thanks.