Sample: dhtmlxMenu Radio Buttons And Checkboxes Used As Menu Items dhtmlxMenu main page
X
 
 
<xml>
    ...
    <!-- rendering checkboxes -->
    <item id="a1" text="Line Numbering" type="checkbox" checked="true"/>
    <item id="a2" text="Ignore Case" type="checkbox"/>
    ...
    <!-- rendering radio buttons -->
    <item id="b1" text="Black" type="radio" group="font" checked="true"/>
    <item id="b2" text="Brown" type="radio" group="font"/>
    ...
</xml>
 
<script>
 
    // initializing a menu
    menu = new dhtmlXMenuObject("menuObj");
    ...
    // just loading XML
    menu.loadXML("../common/dhtmlxmenu_radios.xml");
</script>