title: Show and hide div onclick button
body: <p>How can I show and hide a div (content) with a click on a button?</p>
  
  <p>Here some code:</p>
  
  <pre><code>&lt;button class="btn btn-default"&gt;Text&lt;/button&gt;
  &lt;div class="div-to-hide"&gt;Some content&lt;/div&gt;
  </code></pre>