Carol Carol - 8 months ago 59
jQuery Question

Table Expand Collapse Issue

I'm new with jquery and I need help for my table.

Here is my problem: I need a table inside a table. I know it sounds weird but it's more like a "more details" table of a specific table row.
I got this code, but the rows of my "detail" table are also "hiding and showing".

Here it is:

I know it's a dumb question, but I still dont get it.

Answer Source

Look at the following: Selecting only first-level elements in jquery

The problem is that you are also selecting the children in your subtables...