Check documentation for the latest version of dhtmlxSuite onSelect DHTMLX Docs

onSelect

fires after the user has selected a color and pressed the "Select" button

void onSelect(string color,HTMLElement node);
colorstringthe selected color in hex color format (e.g. "#aabbcc")
nodeHTMLElementDOM object of the active input, in case of the input-based initialization, otherwise null

Example

myColorPicker.attachEvent("onSelect", function(color,node){});

Back to top