[jQuery] Re: Determining show / hide state
.is(":hidden") On 5/30/07, SamCKayak <[EMAIL PROTECTED]> wrote: Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Determining show / hide state
Yeah, you can select only hidden or visible objects by using $("#selector:visible") or $("#selector:hidden") easy as jCake ;) On 5/30/07, SamCKayak <[EMAIL PROTECTED]> wrote: Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam
[jQuery] Re: Determining show / hide state
Wow, .is saves the day again. That little guy always gets me. http://docs.jquery.com/DOM/Traversing#is.28_expr_.29 Is there a more extensive list of what could be done with .is? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Wednesday, May 30, 2007 3:34 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Determining show / hide state .is(":hidden") On 5/30/07, SamCKayak <[EMAIL PROTECTED]> wrote: Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Determining show / hide state
is is anything and everything! all jQuery selectors work. On 5/30/07, Geoffrey Knutzen <[EMAIL PROTECTED]> wrote: Wow, .is saves the day again. That little guy always gets me. http://docs.jquery.com/DOM/Traversing#is.28_expr_.29 Is there a more extensive list of what could be done with .is? -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of * *Sent:* Wednesday, May 30, 2007 3:34 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Determining show / hide state .is(":hidden") On 5/30/07, *SamCKayak* <[EMAIL PROTECTED]> wrote: Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Determining show / hide state
Damn, and I've been using if ($(element).css ('display') == 'none') all this time too! On May 30, 11:33 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > .is(":hidden") > > On 5/30/07, SamCKayak <[EMAIL PROTECTED]> wrote: > > > > > Does jQuery .show() and .hide() set a flag anywhere on an object to > > indicate if it was last show()n or hide()n? > > > Sam > > -- > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ