How to create a collapsing tree table in html/css/js?
SlickGrid has this functionality, see the tree demo. If you want to build your own, here is an example (jsFiddle demo): Build your table with a data-depth attribute to indicate the depth of the item in the tree (the levelX CSS classes are just for styling indentation): <table id=”mytable”> <tr data-depth=”0″ class=”collapse level0″> <td><span class=”toggle … Read more