title: How to open a Bootstrap 4 modal dialog using jQuery
body: <p>How is a Bootstrap 4 modal dialog opened using jQuery? </p>
  
  <p>I am able to open a modal with a button like the following, which opens a dialog with the following div:</p>
  
  <pre><code>&lt;input type="button" 
         name="PurchaseOrderButton" 
         value="Find" 
         class="btn btn-primary" 
         data-toggle="modal"
         data-target="#id-FindModal" 
         id="id-FindBtn" 
         /&gt;
  
  &lt;div class="modal" id="id-FindModal"&gt;
  </code></pre>
  
  <p>I need to run a JavaScript function that will perform some steps, then load the modal.  I attempted it with the following statement, but it does not work:</p>
  
  <pre><code>$('#id-FindModal').modal('show');
  </code></pre>