| Sample: dhtmlxMenu | Radio Buttons And Checkboxes Event Handling | dhtmlxMenu main page |
"Settings" item contains sub items with checkboxes and radio buttons. Try to change their states.
<script></script>var menu = new dhtmlXMenuObject("menuObj"); ... // attaching onCheckboxClick event handler menu.attachEvent("onCheckboxClick", function(id, state) { // return true to change state automatically return true; }); // attaching onRadioClick event handler menu.attachEvent("onRadioClick", function(group, idChecked, idClicked) { // return true to change state automatically return true; });
| © DHTMLX LTD. All rights reserved |