[jQuery] detect visibility of nested elements

2008-11-26 Thread schellmax
hello, is there a selector or something to detect the visibility of a nested element? for example, i got the following: Invisible text 'p:visible' will return the preceding p-tag, although it's not visible at all, as it's parent isn't. do i have to loop through all parents and check their 'disp

[jQuery] Re: How to check is element exist

2007-12-05 Thread schellmax
You can use the length property of the jQuery collection returned by your selector: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F On 8 Okt., 13:19, zidoo <[EMAIL PROTECTED]> wrote: > if home some like this: > > $('').appendTo('body'); > > now when i