Hi,

I am trying to simply hide / show the body of a table with toggle().
The hide seems to work but the show doesn't. e.g. header is clicked -
hide / header is clicked again - nothing.

This is my code

$('#myTable th').click(function() {
          $('tbody').toggle();
});

Thing is I know something is wrong but I'm not savvy enough yet to
recognise what!  Do I need to traverse the dom?

Any ideas?

Thanks.

Reply via email to