fill dropdown list with items when parent list
I have two fields in my db size and colors I store my data like that:
size colors
8 red,blue
10 red
12 white
I have two dropdown lists the first for size and the second for size I made a select query and get the sizes I want but I want when I select a specific size the second list display the colors , also I know how to populate a comma seprated field but what should I do so the seconde list change its values
(without ajax please or reloading the page)
thanks
|