I'd like to have tables that can dynamically collapse some rows in a web page, such as:
| Title | Foo | Bar | --------------------------------- | + My First Section | --------------------------------- | + My Second Section | ---------------------------------
can dynamically expand to
| Title | Foo | Bar | --------------------------------- | - My First Section | --------------------------------- | 1st Title | 42 | $10.00 | --------------------------------- | 2nd Title | 74 | $12.00 | --------------------------------- | + My Second Section | ---------------------------------
when I press on the +
sign.
Are there any JavaScript libraries that could help me do such a thing, or is there some magic native command that could do it for my easily?