I made a simple table with background colors. Every td has a input type radio. And every radio button has its own value. The value is the the color of the where it is.
(Picture)
Here is the HTML code.
<input type="radio" name="radio2" value="#FF0000">
<input type="radio" name="radio2" value="#666666">
<input type="radio" name="radio2" value="#003399">
<input type="radio" name="radio3" value="#FF0000">
<input type="radio" name="radio3" value="#666666">
<input type="radio" name="radio3" value="#003399">
etc...
I´ve tryed the get the value of the clicked button via onClick
<input type="radio" value="#FF0000" name="radio1" id="rot"
onClick="document.getElementById('write').value=(this.value)"
What I´d like to do now is to add all the selected colors together and to mix them. At least i like to print them out in a div or something else. But i don´t know how to add them together. I hope you guys understand what I am looking for.
Thanks :)