Skip to content Skip to sidebar Skip to footer

Why Does Onclick Event Only Working Once In Html?

I have the following html and javaScript. The onclick showHiddenDiv event only work for the first
  • .
      Copy
  • Solution 2:

    Change <div id="id-2" to <div id="div-2".

    Solution 3:

    There is an error in your html also id-2 should be div-2.

    <pclass="date">Thursday Sep 11</p><divid="div-2"style="display:none">Completed. 
             <a>The web page can be found at this link.</a></div>

    You need opening a tag.

    Post a Comment for "Why Does Onclick Event Only Working Once In Html?"