DHTMLX Docs & Samples Explorer

Index
dhtmlxForm
Controls Operations

# Checked State

To set or retrieve the state of the radio button or checkbox.

    // 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