title: How to loop over all the nodes of a jstree
body: <p>I am unable to figure out how I can loop over all the nodes of a jstree. </p>
  
  <p>What I am looking for is that for the jstree <code>jstree1</code>. I want to loop over all of its children and sub-children and print/get the <code>id</code> of each leaf. </p>
  
  <p>Thanks. </p>