title: style.display = "none" not working in javascript
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function showTodos(e) {
    document.getElementById('modal_todos').style.display = "block";
  }
  
  function closeTodoDiv(e) {
    document.getElementById('modal_todos').style.display = "none";
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class=" modal modal-todos" id="modal_todos"&gt;
    &lt;button style="float: right; margin-top:3px;margin-right:8px;"&gt;x&lt;/button&gt;
    &lt;button class="btn btn-secondary btn-sm"&gt;Add new Todo&lt;/button&gt;
    &lt;h2&gt;dfdfdf&lt;/h2&gt;
    &lt;h2&gt;dfdfdf&lt;/h2&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I can't close my popuped up div on button click.Can't understand why "none" is not working, though my showTodos() is working fine. Also the ID used in unique.</p>