[jQuery] Re: Selector for Toggled Element
If you can't select it using an id ( $('#tableID') ) then there is something invalid in your HTML (duplicate ids?). If the table has a class and you can't find it using a class selector then there is something else fundamentally wrong. Can you give a bit more information? Like the table HTML, and maybe the toggling code? And I assume your IF statement is (will be) a simple "if ( table is hidden ) then { do something } else { do alternative }? On Nov 2, 12:51 pm, studiobl <[EMAIL PROTECTED]> wrote: > Neither that (nor some form of that) seems to work. > > On Nov 1, 3:43 pm, motob <[EMAIL PROTECTED]> wrote: > > > try $("table:hidden") or some form of that. > > > On Nov 1, 2:30 pm, studiobl <[EMAIL PROTECTED]> wrote: > > > Any suggestions on how to retrieve the display attribute of a toggled > > > element?
[jQuery] Re: Selector for Toggled Element
Neither that (nor some form of that) seems to work. On Nov 1, 3:43 pm, motob <[EMAIL PROTECTED]> wrote: > try $("table:hidden") or some form of that. > > On Nov 1, 2:30 pm, studiobl <[EMAIL PROTECTED]> wrote: > > Any suggestions on how to retrieve the display attribute of a toggled > > element?
[jQuery] Re: Selector for Toggled Element
try $("table:hidden") or some form of that. On Nov 1, 2:30 pm, studiobl <[EMAIL PROTECTED]> wrote: > I'm trying to write an if statement based on the toggled state of an > element (a table, in this case). Attempting to select the table by > any combination of id, class, and/or element type doesn't work. Using > Firefox, I can see that the table is toggled between display:table and > display:hidden. The selector that jQuery appears do be using is > element.style. This selector is apparently built on-the-fly, as it's > not one of mine. > > I thought 'aha, select it by using $("element.style")!' This didn't > work. > > Any suggestions on how to retrieve the display attribute of a toggled > element?