title: How to get JStree top level checked nodes.
body: <p>I have created one jquery jstree using json object with check box. The tree is working fine. Now i need all the top level checked nodes (not their children). I have tried with below code which return me all the checked nodes including their childs.</p>
  
  <pre><code>$("#treename").jstree("get_checked",null,true).each
  
                            (function () { 
  
                       alert($(this).attr("path"));
  
   }); 
  </code></pre>
  
  <p>Refering to the below tree picture. I need only "CA_Administrator" not its child nodes like trunk,branch,tag.
  <img src="https://i.stack.imgur.com/gkoa6.png" alt="My Tree"></p>