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


Reply via email to