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 .
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.
<p class="date">Thursday Sep 11</p>
<div id="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?"