Might be easier if you post an page that isn't working.  We could be more
specific.
However...
Use a "class" when you want to refer to something that is repeated on the
page.
Also you can use :last to find the last one.
$("tr:last").show() would show the last row found.

Does that help?

Glen


On 8/2/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
>
> What I am looking for is a way to hide the last one of these that was
> clicked. I tried saving the object that was last used in a var but that
> didnt work. I thought then maybe I could create some kind of "close all"
> that would close all the other layers but not the one we have clicked to
> show.
>
>            $('#Location').click(function() {
>          $("#attrname").css('background-color','#8FA9C5');
>          $("#attrtext").text("Location");
>          $("#location").show();
>          $("#shape").hide();
>    });
>
>        $('#Shape').click(function() {
>          $("#attrname").css('background-color','#8FA9C5')
>          $("#attrtext").text("Shape");
>          $("#location").hide();      /* should hide location */
>          $("#shape").show();
>    });
>

Reply via email to