Hi, I didn't mean to be rude, it's just a tip.
It is there on the docs page under 'Visibility Filters:', right after the left sidebar content ends. Invisible elements are the ones that have display:none or inputs of type 'hidden'. As Josh pointed out, you can use is() to check an existing object for the property, I thought you would figure that out (http:// docs.jquery.com/Traversing). I did some testing and it works for both toggle() and slideToggle(); when the element slides up it ends with display:none too. Make sure you are referencing the right object, a child of a hidden element will be considered ':visible' even if it's actually hidden by the parent. - ricardo On Oct 16, 6:43 pm, Jay <[EMAIL PROTECTED]> wrote: > 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?