[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread brian
$( selector ).is(':visible') <-- this is precisely what I was looking for. How did I forget that? Thanks a bunch! On Tue, Feb 10, 2009 at 2:51 PM, Paul Mills wrote: > > Hi, > You don't need to run the video - try this link instead > http://jsbin.com/ojuju > > There are two snippets of Javsscrip

[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread Paul Mills
Hi, You don't need to run the video - try this link instead http://jsbin.com/ojuju There are two snippets of Javsscript code in the page that is shown: The first uses uses a class to control the hide/show. The second uses $( selector ).is(':visible') to test if the text is visible. Paul

[jQuery] Re: get visibility state after toggle()

2009-02-09 Thread brian
The video won't play for me :-( tthanks anyway. FF3.0.6 on linux So ... do you happen to know the answer to my query, by any chance? On Mon, Feb 9, 2009 at 8:08 AM, Paul Mills wrote: > > Brian > Here are a couple of demos that might help. > http://jsbin.com/ojuju/edit > > Paul > > On Feb 9, 4

[jQuery] Re: get visibility state after toggle()

2009-02-09 Thread Paul Mills
Brian Here are a couple of demos that might help. http://jsbin.com/ojuju/edit Paul On Feb 9, 4:01 am, brian wrote: > How can I tell what the visibility state of an element is which has > just been toggled? Is my selector no good or is it a matter of timing? > > . The situation is that I'm di