• Hello, I have used this code many times, but something is wrong and I can’t figure it out for the life of me. This code works great for FAQ drop down Question and Answers. I have noticed many people asking how to do this. If you can help me fix the code, we can offer it to others for this great option.

    Question No. 1 does not work, but Question No. 2 does.

    `<b>Question 1. ?</b>
    <div id=”a” style=”display: none;”>

    • Answer Goes Here.

    </div>

    <b>Question 2? </b>
    <div id=”b” style=”display: none;”>

    • Answer Two.

    </div>
    <script type=”text/javascript” language=”JavaScript”>// <![CDATA[
    function toggle(tag) {
    if (tag.style.display==”) {
    tag.style.display=’none’
    } else {
    tag.style.display=”
    }
    }

    // ]]></script>

    Can you help me fix my mistake?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Broken Code?’ is closed to new replies.