getParent

Returns the parent of the node, or undefined if there is no parent. Accepts a jQuery object, DOM Element or a path identifying the node.

<ul id="treeview">
    <li>My Project
        <ul>
            <li id="someid">js</li>
            <li>css</li>
        </ul>
        <li>index.html<li>
        <li>upload.php<li>
    </li>
</ul>

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

        // get the top item - parent of [0, 0]
        var top = treeview.getParent(treeview.getByPath([0, 0]));
    });
</script>