On Dec 14, 2006, at 8:49 AM, Vincent Majer wrote:
<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>
Is there a problem here ???
Hi Vincent,
I see a couple things that I would change if it were my code.
1. change
$().ready(function(){
to
$(document).ready(function(){
2. change the way you hide the DIVs. For example, change
$("div.dynamic_zone").find("div#description").css
({display:"none"});
to
$("div.dynamic_zone").find("#description").hide();
I'd have to see the HTML markup to offer any further suggestions.
Cheers,
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/