title: Collapse rows in treeview-table onLoad (HTML) with javascript
body: <p>I have a treeview-table that I used to collapse and expand data, but how can I show collapsed all rows on load? I use this to collapse-expand:</p>
  
  <pre><code> if (tr.hasClass('collapse')) {
              tr.removeClass('collapse').addClass('expand');
              children.hide();
          } else {
              tr.removeClass('expand').addClass('collapse');
              children.show();
          }
          return children;
  </code></pre>
  
  <p>This is my jsFiddle: <a href="http://jsfiddle.net/Vd5BH/79/" rel="nofollow">http://jsfiddle.net/Vd5BH/79/</a></p>