dhtmlxTree

there is a function findItem(…

but it’s search by text, how to search by id.

If you want check if item with specific ID exists
    if (tree.getParentId(search_id)==="")  alert(“Item doesnt exist”);

If you need to show|select item with specific ID
    tree.focusItem(search_id);
    tree.selectItem(search_id);