1
Our colour picker demo page has given you the following sample code:
function OnCustomColorChanged(selectedColor, selectedColorTitle, colorPickerIndex) {
//here we use only one of the passed in parameters: selectedColorTitle
var tShirt = document.getElementById("tShirt");
tShirt.src = "colorpicker/img/" + selectedColorTitle.replace(" ", "-") + ".jpg";
};
You should assign the second parameter value to a variable and use it for your further processing.
a a a