## Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

### Overview[ depends on jquery.ztree.excheck js ]

Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

3. Please use zTree object to executing the method.

### Function Parameter Descriptions

#### treeNode JSON

JSON data object of the node which need to be checked or unchecked.

Please ensure that this data object is an internal node data object in zTree.

#### disabled Boolean

disabled = true means: the node's checkbox / radio is disabled.

disabled = false means: the node's checkbox / radio is removed disabled.

If this parameter is omitted, it is same as disabled = false

Don't affect the node which 'nochecked' attribute is true.

#### inheritParent Boolean

inheritParent = true means: all parent nodes's disabled status will be same as this node.

inheritParent = false means: all parent nodes's disabled status will be not affected.

If this parameter is omitted, it is same as 'inheritParent = false'

#### inheritChildren Boolean

inheritChildren = true means: all child nodes's disabled status will be same as this node.

inheritChildren = false means: all child nodes's disabled status will be not affected.

If this parameter is omitted, it is same as 'inheritChildren = false'

#### Return none

no return value

### Examples of function

#### 1. Set the selected nodes's checkbox / radio to disable.

    var treeObj = $.fn.zTree.getZTreeObj("tree");
    var nodes = treeObj.getSelectedNodes();
    for (var i=0, l=nodes.length; i < l; i++) {
    	treeObj.setChkDisabled(nodes[i], true);
    }