Hi, Yes, I understand dreamingmind's point. I am in the process of changing it to question1/answer1, etc....
thanks. On May 11, 2:00 am, dreamingmind <dreamingmin...@gmail.com> wrote: > Ryan, > > I'm not SURE what the problem is, but I see your id's are pretty > generic. If there's more than one question/answer on the page and the > id's aren't unique things can break mysteriously. > > Don > > On May 10, 9:46 am, Ryan Schmidt <google-2...@ryandesign.com> wrote: > > > > > On May 10, 2011, at 10:43,varaiwrote: > > > > The following is a very simple view that should display the answer to > > > question when the question is clicked. Otherwise the answer should not > > > display. ie. the question is a toogle key. > > > Actually, it's a toggle. > > > > function toogle_answerDiv() > > > { var a=document.getElementById('answerDiv'); > > > > if (a.style.display=="block") > > > a.style.display="none"; > > > else > > > a.style.display=="block"; > > > } > > > The last line should have "=" not "==".- Hide quoted text - > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php