Is it possible to make a table row expand and collapse? Can anyone refer me to a script or an example?
I prefer jQuery if possible. I have a drawing concept I would like to achieve:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, a table row can slide up and down, but it’s ugly since it changes the shape of the table and makes everything jump. Instead, put an element in each
td, something that makes sense like aporh2etc.As for implementing a table slide toggle…
It’s probably simplest to put the click handler on the entire table,
.stopPropagation()and check what was clicked.If a td in a row with a colspan is clicked, close the
pin it. If it’s not a td in a row with a colspan, then close then toggle the following row’sp.It is essential to wrap all your written content in an element inside the
tds, since you never want toslideUpatdortror table shape will change!Something like:
Try it out with this jsFiddle example.
… and try out this jsFiddle showing implementation of a
+–-toggle.The HTML just has to have alternating rows of several
tds and then a row with atdof a colspan greater than 1. You can obviously adjust the specifics quite easily.The HTML would look something like: