onchange to change text color inside contenteditable
<p>I currently have a select box that has options of different colors, as well as a contenteditable inside a div to be used as a text editor. What I want is when I select a color from the box e.g. red, the selected text inside the contenteditable changes to red.</p>

<pre><code>        &lt;select id="colorChange"&gt;
            &lt;option onchange="value="Black"&gt;Black&lt;/option&gt;
            &lt;option value="Red"&gt;Red&lt;/option&gt;
            &lt;option value="Blue"&gt;Blue&lt;/option&gt;
            &lt;option value="Green"&gt;Green&lt;/option&gt;
            &lt;option value="Yellow"&gt;Yellow&lt;/option&gt;
            &lt;option value="Pink"&gt;Pink&lt;/option&gt;
        &lt;/select&gt;
</code></pre>