title: How to open a modal for a particular ID in vanilla JavaScript
body: <p>In Bootstrap, to open a pop-up window, you do this, using jQuery:</p>
  
  <p><code>$('#edit_modal').modal();</code></p>
  
  <p>You call the <code>modal</code> function for this ID. What is the equivalent in vanilla JavaScript? I tried:</p>
  
  <p><code>document.getElementById("edit_modal").modal();</code></p>
  
  <p>and I get:</p>
  
  <blockquote>
    <p>document.getElementById(...).modal is not a function</p>
  </blockquote>
  
  <p>What am I missing? How can I call a function for a particular ID?</p>
  
  <p>Thanks.</p>