How to show HTML element with JavaScript

1 Answer

0 votes
<p id="id-p" style="display:none">HTML content</p>

<button type="button" onclick="document.getElementById('id-p').style.display='block'">
    Click</button>

 



answered Aug 29, 2016 by avibootz

Related questions

2 answers 298 views
1 answer 213 views
1 answer 233 views
1 answer 274 views
1 answer 229 views
...