Show and hide div onclick button

Viewed 49667

How can I show and hide a div (content) with a click on a button?

Here some code:

<button class="btn btn-default">Text</button>
<div class="div-to-hide">Some content</div>
1 Answers
Related