No need to store anything in a variable.  That gets murky.  Just hide
them all via a selection on class and then show the one you want after
that.  Then you need not remember anything about state.

-khoker



On Apr 26, 10:49 am, "Sean Catchpole" <[EMAIL PROTECTED]>
wrote:
> You're on the right track. To only show one at a time, simply store
> the last one open in a variable and close it before opening the new
> one, here's an example:
>
> var currOpen;
> $("scTopNavList a").click(function(){
>     if(currOpen) currOpen.hide("fast");
>     currOpen = $(this.href);
>     currOpen.show("fast");
>     return false;
>
> });
>
> ~Sean

Reply via email to