[jQuery] Re: Toggle visibility.

2007-11-09 Thread peter e higgins
On Thursday 08 November 2007 19:06, shapper wrote: Hello, I have an anchor on my page. When I click it I want to Toggle the visibility of a Div with ID = Content. my jQuery foo is lacking, but something along these lines should do it: $('a.mylink').click(function(){ var

[jQuery] Re: Toggle visibility.

2007-11-09 Thread Theodore Ni
You can use toggle(): $(a).click(function() { $('#Content').toggle(); }); On Nov 8, 2007 7:06 PM, shapper [EMAIL PROTECTED] wrote: Hello, I have an anchor on my page. When I click it I want to Toggle the visibility of a Div with ID = Content. If the div is visible then it should

[jQuery] Re: Toggle visibility on an entire table column?

2007-08-07 Thread Glen Lipka
I had an existing demo that was really close to that. I modified it here. http://www.commadot.com/jquery/selectors/lastTD.htm The answer I have is td:last in an each. Glen On 8/7/07, Andy Matthews [EMAIL PROTECTED] wrote: I haven't tried this yet but is it as simple as assigning some sort

[jQuery] Re: Toggle visibility on an entire table column?

2007-08-07 Thread Andy Matthews
Right on! That's exactly what I want to do. Thanks Glenn! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, August 07, 2007 9:45 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Toggle visibility on an entire table column? I had

[jQuery] Re: Toggle visibility on an entire table column?

2007-08-07 Thread Andy Matthews
Sometimes I won't know the number though. The td:last works perfectly. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Desbois Sent: Tuesday, August 07, 2007 10:12 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Toggle visibility on an entire table