Hello,
I have a script which uses a colorpicker in which the user can select a color, and in the preview section the color of one div is changed to this color value. This is done by a javascript function of the color picker. called setcolor. The code for this function is given below:
function setColor(color) {
var inp = document.getElementById("pageSurround");
inp.style.backgroundColor = color;
}
Now I want that the value 'color'(used above to set bg color for the element 'pageSurround') is passed to a form variable named 'in_backgroundColor' (the color picker is being invoked in a PHP Script) so that this value can be stored in the database. How should this be coded.
Regards
Arvind