I am working on dynamic checkbox which have te used using innerhtml.Checkbox are generated as per the data in the database.Now when i click on red color it will display image of all the prodyuct whicha are in red .
i have used 2 table
1tablecolor
ColorID ColorName ColorCode
1 Red #ff0000
2 Blue #0000ff
3 Black #000000
4 Green #00ff00
5 Yellow #ffff00
2tableColorProduct
ProductID ColoID ProductName ImgExtension
8 1 Product1 .jpg
9 1 Product2 .jpg
10 2 Product3 .jpg
11 2 Product4 .jpg
12 1 Product5 .jpg
13 3 Product6 .jpg
31 4 Product7 .jpg
32 4 Product8 .jpg
33 4 Product9 .jpg
34 4 Product10 .jpg
35 4 Product11 .jpg
36 5 Product12 .jpg
37 5 Product13 .jpg
38 5 Product14 .jpg
39 5 Product15 .jpg
common thing is colorID