DHTMLX Docs & Samples Explorer

Checked State

Applied to radio buttons and checkboxes.

    // checking items
    dhxForm.checkItem(name, value); // for radio buttons 2nd argument value should be passed
 
    // unchecking items
    dhxForm.uncheckItem(name, value);
 
    // getting current state
    var isChecked = dhxForm.isItemChecked(name, value); // returns true/false