Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Toggle visibility.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
shapper  
View profile  
(1 user)  More options Nov 8 2007, 7:06 pm
From: shapper <mdmo...@gmail.com>
Date: Thu, 08 Nov 2007 16:06:05 -0800
Local: Thurs, Nov 8 2007 7:06 pm
Subject: Toggle visibility.
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 become invisible.
If it is invisible them it becomes visible.

How can I do this?

Thanks,
Miguel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
peter e higgins  
View profile  
(1 user)  More options Nov 8 2007, 2:59 am
From: peter e higgins <phigg...@gmail.com>
Date: Thu, 8 Nov 2007 02:59:08 -0500
Local: Thurs, Nov 8 2007 2:59 am
Subject: Re: [jQuery] Toggle visibility.
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 visibleState = true; /* uberfoo jquery way of getting visibility value */
        $('#content').css("visibility",(visibleState ? "visible" : "hidden"));  


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Theodore Ni  
View profile  
(1 user)  More options Nov 8 2007, 9:07 pm
From: "Theodore Ni" <zyl...@gmail.com>
Date: Thu, 8 Nov 2007 21:07:37 -0500
Local: Thurs, Nov 8 2007 9:07 pm
Subject: Re: [jQuery] Toggle visibility.

You can use toggle():

$("a").click(function() {
    $('#Content').toggle();

});

On Nov 8, 2007 7:06 PM, shapper <mdmo...@gmail.com> wrote:

--
Ted

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google