Init from HTML

</> Source
<!DOCTYPE html>
<html>
<head>
	<title>Init from HTML</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	<script>
		var myCP;
		function doOnLoad() {
			myCP = dhtmlXColorPicker(["input1","input2","input3"]);
		}
	</script>
</head>
<body onload="doOnLoad();">
	<table cellspacing="2" cellpadding="2" border="0">
		<tr><td><input type="text" id="input1" selectedcolor="#00ff00"></td></tr>
		<tr><td><input type="text" id="input2" colorbox="true"></td></tr>
		<tr><td><input type="text" id="input3" customcolors="true"></td></tr>
	</table>
</body>
</html>

Documentation

Check documentation to learn how to use the components and easily implement them in your applications.