![]() |
Sample: dhtmlxColorPicker | Initialization with attachment to input | dhtmlxColorPicker main page |
You can define colorPicker properties right through INPUT element attributes in HTML:
<input type="text" imagepath="../../codebase/imgs/" id="dhtmlxColorPicker1"> <script></script>var myCP1 = dhtmlXColorPickerInput('dhtmlxColorPicker1'); myCP1.setImagePath("../../codebase/imgs/"); myCP1.init();
<input type="text" imagepath="../../codebase/imgs/" colorbox="true" id="dhtmlxColorPicker2"> <script></script>var myCP2 = dhtmlXColorPickerInput('dhtmlxColorPicker2'); myCP2.setImagePath("../../codebase/imgs/"); myCP2.init();
<input type="text" imagepath="../../codebase/imgs/" customcolors="true" selectonclick="true" id="dhtmlxColorPicker3"> <script></script>var myCP3 = dhtmlXColorPickerInput('dhtmlxColorPicker3'); myCP3.setImagePath("../../codebase/imgs/"); myCP3.init();
© DHTMLX LTD. All rights reserved |