[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread Glen Lipka
On 4/11/07, real <[EMAIL PROTECTED]> wrote: Oh... oops sorry about that! lol On Apr 11, 2:48 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > real schrieb: > > > This should work for you: > > > if ( $('td').is(':visible') ) { // the rest of your code } > > That won't work (for any element) if "dis

[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread Brandon Aaron
I have not seen a plugin that contains such logic especially when dealing with the col and colgroup tags. Of course if you could avoid having the col and colgroup tags hidden you could use something like this (untested and off the top of my head). var visible = !!($('#myCell').parents().filter('

[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread real
Oh... oops sorry about that! lol On Apr 11, 2:48 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > real schrieb: > > > This should work for you: > > > if ( $('td').is(':visible') ) { // the rest of your code } > > That won't work (for any element) if "display: none" has been declared > for an ancestor

[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread Klaus Hartl
real schrieb: This should work for you: if ( $('td').is(':visible') ) { // the rest of your code } That won't work (for any element) if "display: none" has been declared for an ancestor element. Or in this special case the col which the td belongs to (which is not exactly an ancestor). Th

[jQuery] Re: Determine if a table cell is visible or not?

2007-04-11 Thread real
This should work for you: if ( $('td').is(':visible') ) { // the rest of your code } On Apr 11, 2:32 pm, "Matt Kruse" <[EMAIL PROTECTED]> wrote: > I'd like to find out if a table cell is actually visible or not. Is > there a method in any plugin that will do this work for me? > > The complexity