If it's the third column, you could also try this:
$('td:nth-child(3)').hide()
If you have <th>s in your table and need to hide them, too, you can
do this:
$('td:nth-child(3), th:nth-child(3)').hide()
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 29, 2007, at 12:36 PM, Alexandre Plennevaux wrote:
Using the <col> element maybe?
Otherwise, if it is the 3rd column you could do this:
$("td+td+td").hide();
I dunno if that works, but it's the css way to address the 3rd column.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:discuss-
[EMAIL PROTECTED] On
Behalf Of Baxter
Sent: jeudi 29 mars 2007 16:28
To: discuss@jquery.com
Subject: [jQuery] Collapsing table Columns?
Any ideas how one could hide/show table columns, rather than rows?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date:
28/03/2007
16:23
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/