nadiam 0 Posting Pro in Training

hey guys, so im creating a page using php html js etc and what i wanna do is have two tables on that page. the first table is populated by data from database(easy) the second table is tricky for me. in the second table i want to be able to add rows but as a tree structure. for example button "add row" adds a new row in the table but at the same time it can be viewed as a tree structure(like it has that small arrow at the side) because i want to add functions like add subject(child) to that one row(parent). i hope im making sense.

but im not sure which jquery plugin is the most appropriate for this and easiest to figure out and configure(theres so many out there, and of course it needs to be free) if anyone has suggestion/idea for this second table that would be awesomes!!

thanks