When you copy the content with jQuery('#content').html(content);
you're still duplicating the #item1_content_info ID, that's the source
of your problems.

I took the liberty to duplicate your page and alter the script
(working in IE):
http://ff6600.org/j/toggle.htm

or for a more semantic solution:
http://ff6600.org/j/toggle2.htm

you could also use the 'rel' attribute to store the content IDs.

- ricardo

On Sep 25, 1:20 pm, RLR <[EMAIL PROTECTED]> wrote:
> Thanks for the hint Thomas.
> I revised the code so that it validates correctly now. And I stripped
> it down to a minimalist version to show my point.
>
> Click item 1
> -> toggle link appears
> click on toggle link (IE6/IE7 do not toggle the content whereas Safari
> & FF do on the first time)
>
> Click item 1
> ->toggle link appears
> click on toggle content link
> -> now it works on all browsers
>
> What is wrong with the code?

Reply via email to