>
> <script type="text/javascript">
> $().ready(function(){
>
> $("a.ShowMap").click(
> function()
> {
>
> $("div.dynamic_zone").find("div#description").css({display:"none"});
> $("div.dynamic_zone").find("div#map").show("slow");
>
> });
>
> $("a.ShowImage").click(
> function(){
> $("div.dynamic_zone").find("div#map").css({display:"none"});
> $("div.dynamic_zone").find("div#description").show("slow");
> });
>
>
> });
> </script>
>
I'm not a jQuery expert but why not just do this:
$("a.ShowMap").click(
function()
{
$("div#description").css({display:"none"});
$("div#map").show("slow");
});
$("a.ShowImage").click(
function(){
$("div#map").css({display:"none"});
$("div#description").show("slow");
});
A valid XHTML page can only on contain 1 of the same ID tag.
<invalid xhtml>
<tag1 id="tag"></tag1>
<tag2 id="tag"></tag2>
</invalid xhtml>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/