You can attach several handlers to the same event using the method attachEvent():
var myEvent = myColorPicker.attachEvent("onSelect", function(color,node){
// your code here
});
Several handlers can be attached to one and the same event, and all of them will be executed.
The names of the events are case-insensitive.
To detach an event use the method detachEvent():
myColorPicker.detachEvent(myEvent);
You can find the full list of events in the ColorPicker API.
Back to top