Fiido Firdauz Fiido Firdauz - 2 years ago 108
HTML Question

JQuery Expand and hide table td

I manage to make table row expand and hide but when I add another row it's like all row collapsed together .

Your help really appreciate.



Here is the DEMO

Answer Source

Don't use nextAll(), just use next().

Also there should not be repeated ids in an HTML document, so replace all of the more ids with classes.

Refer to the JSFiddle for what the updated code should look like.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download