javascript quiz

Job ID: 32820870

Budget: $10 – $30 USD

trying to figure out myself this filtering function but i need some help on this script. if you are js expert, this could be piece of cake.

its a simple script. basically... multiple selected checkboxes show its values

solve.
situation 1: tomato output needs to show red box output which is red's value
situation 2: watermelon output needs to show green and black box output which are green and blue's values
*can't make tomato's value to be red because it causes an error when unclicking red, the output goes off*

output should be like below
ex.
red = red box
green = green box
black = black box
tomato = red box
watermelon = green and black box
Related categories: JavaScript CSS HTML5 HTML jQuery / Prototype