If you already have a jQuery object you can do this:
jqObj.is(":visible"); // returns boolean
-- Josh
----- Original Message -----
From: "Jay" <[EMAIL PROTECTED]>
To: "jQuery (English)" <[email protected]>
Sent: Thursday, October 16, 2008 2:43 PM
Subject: [jQuery] Re: how to detect current toggle setting?
On Oct 16, 3:53 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
Read the docs, read the docs.
http://docs.jquery.com/Selectors
I did. I use them frequently.
There's no mention of those two functions on the selectors page In
docs.jquery.com or the downloadable version.
There's no detail on how they actually work on the effects page
either.
$('#element:visible') or $('#element:hidden')
Tried it and it didn't work for me. This also requires javascript
search the dom to find '#element'.
Not terribly efficient if I already have a reference to the object in
question. Wouldn't
obj.attr('some_property_I_dont_know_about')
or
obj.get(0).some_property_I_dont_know_about
be much faster?