I did not fully realize the issue with the duplication of the ids from
Thomas first post... Now I understand and have a working example to
base my code on.
Thank you very much for your help Richardo and Thomas.
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
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
-
Your document contains multiple same ids (info, info_link). This is
not valid (http://validator.w3.org/check?verbose=1&uri=http://
dev.dreimorgen.com/test.html). Please correct this first (use classes
instead) and try again.
For me this is working.
Thomas
4 matches
Mail list logo