I don't have duplicate id in my document, so the problem does not come 
from that point.

I've tried the code you are proposing, but it does not change the 
comportment in IE 6 / 7..

In IE 6, it works sometimes (seems to be a question of luck).. In IE 7, 
it seems not to work at all..




Peter Bengtsson a écrit :
>> <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>
> 
> 

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to