PDA

View Full Version : Toggle Table Rows - jQuery


mickeysox
12-02-2009, 04:49 PM
Hi,

I'd like to use jQuery to toggle (hide / show) table rows after the header is clicked.

Any ideas how I could do this?

Thanks

Michael

tomws
12-02-2009, 06:15 PM
This would fit a little better over into the Javascript Frameworks subforum.

Regarding your question, is it a trick? Is there some reason to not use show() (http://docs.jquery.com/Effects/show)/hide() (http://docs.jquery.com/Effects/hide) or toggle() (http://docs.jquery.com/Effects/toggle) in the click() (http://docs.jquery.com/Events/click) handler?