You can do it using jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">
<p>Some Content</p>
<button onclick=" $('p').hide();">Hide</button>
<button onclick=" $('p').show();">Show</button>
2
solved How to show/hide content on button click? [closed]