Gets or sets the checked state for a given node. Works only when the checkboxes option is set.

void checked(boolChecked, jQuery/list)
Enables/disables a given node.

bool checked(jQuery/list)
Returns whether a particular node is currently checked. If the state is undetermined, null will be returned.

<ul id="treeview">
    <li>My Project
            <li id="someid">js</li>

<script type="text/javascript">
    jQuery(function ($) {
        var treeview = $("#treeview").shieldTreeView().swidget();

        // disable a node
        treeview.checked(true, $("#someid"));