Hey all, I haven't had time to test but reading elsewhere it seems
is(':visible') is the way to go.

Thanks for the replies.

Adrian

On Jul 25, 7:24 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> On Jul 24, 5:25 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>
> > $("p").toggle(function(){
> >   $(this).addClass("selected");
> >   someVar = true;},function(){
>
> >   $(this).removeClass("selected");
> >   someVar = false;
>
> > });
>
> Instead of setting someVar, can't $(element).is("selected") be used?


Reply via email to