DHTMLX Docs & Samples Explorer

### Inputs

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_skyblue.css">

        <script src="../../codebase/dhtmlxcommon.js"></script>
        <script src="../../codebase/dhtmlxform.js"></script>

        <div id="listObj" style="position: relative; width: 250px;"></div>
        <div>
            <input type="text" id="newVal" value="Darkred, Darkblue"> <input type="button" value="Update Value" onclick="updateValue();">
        </div>
        <script>var dhxList;
    function doOnLoad() {
        dhxList = new dhtmlXForm("listObj");
        dhxList.loadStruct("../common/dhxform2.xml?" + new Date().getTime(), function() {
            dhxList.checkItem("custom_colors");
        });
    }
    function updateValue() {
        dhxList.setItemValue("custom_colors_input", document.getElementById("newVal").value);
    }</script>