HTML:
<body>
A color picker: <input type="color" id="myColor">
<form>
<select name="colors" id="colors" onchange="changing()">
<option value="#000">Black</option>
<option value="#fff">White</option>
<option value="#ff0000">Red</option>
<option value="#00ff00">Green</option>
<option value="#0000ff">Blue</option>
</select>
</form>
</body>
JAVASCRIPT:
function changing(){
var y=document.getElementById("colors").value; /*colors is the drop-list id*/
document.getElementById("myColor").value=y; /*myColor is the color picker id */
}
If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;
If your question is related to the Color Picker, click:
Ask new question: Color PickerOtherwise navigate to one of the following forum categories, and post your question there.
##