DHTMLX Docs & Samples Explorer

### Radio Buttons

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="button" value="Swap Checked" onclick="swapChecked();"> <input type="button" value="Uncheck All" onclick="uncheckAll();">
        </div>
        <script>var dhxList;
    function doOnLoad() {
        dhxList = new dhtmlXForm("listObj");
        dhxList.loadStruct("../common/dhxform2.xml?" + new Date().getTime());
    }
    function swapChecked() {
        if (dhxList.isItemChecked("updates", "auto"))
            dhxList.checkItem("updates", "warn");
        else
            dhxList.checkItem("updates", "auto");
    }
    function uncheckAll() {
        dhxList.uncheckItem("updates", "auto");
        dhxList.uncheckItem("updates", "warn");
    }</script>