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 428 views
1 answer 311 views
1 answer 323 views
1 answer 429 views
1 answer 341 views
...