[jQuery] Re: Click function only invoked after second click in IE6 & IE7
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.
[jQuery] Re: Click function only invoked after second click in IE6 & IE7
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?
[jQuery] Re: Click function only invoked after second click in IE6 & IE7
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?
[jQuery] Re: Click function only invoked after second click in IE6 & IE7
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