I have a drop-down list of colors, and when selected, i want to change a value of css font color to the value of the selection.
How can i do this?
<select name="color">
<option value="white" selected="selected">white</option>
<option value="black">black</option>
<option value="red">red</option>
<option value="light blue">light blue</option>
<option value="dark blue">dark blue</option>
<option value="light green">light green</option>
<option value="dark dreen">dark green</option>
<option value="yellow">yellow</option>
<option value="orange">orange</option>
<option value="pink">pink</option>
<option value="purple">purple</option>
<option value="gray">gray</option>
</select>
The css i want to change (its the text in a textfield)
#create form .text {
height: 50px;
width: 500px;
font-size: 36px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-weight: bold;
color:#fff;
}