Does it not work in every browser, or just in IE? If just IE, the
problem could be related to a problem with certain table elements
showing a height even when hidden (jQuery 1.3.2 looks for height/width
values to determine visibility).
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Dec 1, 2009, at 4:17 PM, mickey wrote:
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.