Hi... I have 5 questions and 1 answer to each of the question. I just want to list my questions vertically one by one and when someone clicks on any question, the answer directly displays on the right of that question.. Thats it.. Please help.. How do I do this ?
Actually thats quiet simple.. First of all add a paragraph p HTML: element after each question and assign a unique ID to it.. Then add these events on the question.. <p onmouseover="document.getElementById('q1').innerHTML='Answer of this question' onmouseout="document.getElementById('q1').innerHTML=''">Question!</p><p id="q1"></p> Code (markup): Add all the 5 questions like this