[jQuery] Re: How do you test if hidden or shown in jquery

2008-03-03 Thread David McFarland
On Mar 3, 2008, at 5:42 AM, otherjohn wrote: > Where can I > find specific functions like this. I searched the api and couldn't > find anything like it. http://docs.jquery.com/Traversing

[jQuery] Re: How do you test if hidden or shown in jquery

2008-03-03 Thread otherjohn
excellent, I believe that is just what I was looking for. Where can I find specific functions like this. I searched the api and couldn't find anything like it. john On Mar 3, 8:38 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > You could use either: > > if ( $('#foo').is(':hidden') ) { > /

[jQuery] Re: How do you test if hidden or shown in jquery

2008-03-03 Thread Alexandre Plennevaux
$('#myotherelement:hidden').show(); $('#myotherelement:visible').hide(); On Mon, Mar 3, 2008 at 2:07 PM, otherjohn <[EMAIL PROTECTED]> wrote: > > ok, > I have 2 elements that use the .toggle function to hide and show > themselves. But I would like, when each is clicked, for it to test if > th

[jQuery] Re: How do you test if hidden or shown in jquery

2008-03-03 Thread Karl Swedberg
You could use either: if ( $('#foo').is(':hidden') ) { // do something } or ... if ( $('#foo').is(':visible') ) { // do something } --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 3, 2008, at 8:07 AM, otherjohn wrote: ok, I have