DHTMLX Docs & Samples Explorer

Link to input and button

Source
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxcolorpicker.css">
 <script  src="../../codebase/dhtmlxcommon.js"></script>
   <script  src="../../codebase/dhtmlxcolorpicker.js"></script>
 
<input id="a1"><input type="button" id="a2" value="Test">
<script>
function start() {
    var z2 = new dhtmlXColorPicker(null, null, true, true);
    z2.setImagePath("../../codebase/imgs/");
    z2.init();
    z2.linkTo("a1", "a2");
    //Link to button and input;
    }
</script>