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 <[email protected]> wrote: > On May 10, 2011, at 10:43, varai wrote: > > > 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 "==". -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
