a simple solution that i could think of is $("mySelector").is(":visible");
This should return true if your element is visible and false otherwise. Untested though -GTG On 7/24/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
First thing that comes to mind is to set a variable inside the two sides of the toggle. $("p").toggle(function(){ $(this).addClass("selected"); someVar = true; },function(){ $(this).removeClass("selected"); someVar = false; }); Glen On 7/24/07, Adrian Lynch < [EMAIL PROTECTED]> wrote: > > > Hello all, first post to this group. > > I have an element that I'm toggling, is there a way to determine what > state it is in? > > Thanks. > > Adrian > >