Carol Carol - 6 days ago 6
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: http://jsfiddle.net/ccarizzo/jG468/

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


Answer

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

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