getByPath(path) returns the jQuery object for the node at the given path.

The path parameter is an array of integers, specifying the zero-based index of each level of hierrarchy.
For example, [0, 2] denotes the third child of the first node in the TreeView.

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

<script type="text/javascript">
    jQuery(function ($) {

        var node = $("#treeview").swidget().getByPath([0, 0]);
        // node will be the LI element with id="someid"