On Thu, Dec 4, 2008 at 9:56 AM, clorentzen <[EMAIL PROTECTED]> wrote:

>
> I'm trying to hide all the contents from <td>s within a table *except*
> for the first <td> in each <tr>... I don't want to hide the <td>s,
> just their contents, but I'm having trouble finding the correct
> selector(s) to accomplish this.
>
> <table>
> <tr>
> <td>one</td>
> <td>two</td>
> <td>three</td>
> </tr>
> <tr>
> <td>four</td>
> <td>five</td>
> <td>six</td>
> </tr>
> </table>
>
> I'd like to hide the actual *content* "two", "three", "five", and
> "six" -- for as many tds there are after the first one in each row,
> and for as many rows as there are in the table.
>


$(function() {
$('tr > td:not(:first-child)').css({visibility:'hidden'});
});

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to