Why Does Onclick Event Only Working Once In Html? December 27, 2023 Post a Comment I have the following html and javaScript. The onclick showHiddenDiv event only work for the first . CopySolution 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>CopyYou need opening a tag. Share Post a Comment for "Why Does Onclick Event Only Working Once In Html?"
Post a Comment for "Why Does Onclick Event Only Working Once In Html?"