How is a Bootstrap 4 modal dialog opened using jQuery?
I am able to open a modal with a button like the following, which opens a dialog with the following div:
<input type="button" 
       name="PurchaseOrderButton" 
       value="Find" 
       class="btn btn-primary" 
       data-toggle="modal"
       data-target="#id-FindModal" 
       id="id-FindBtn" 
       />
<div class="modal" id="id-FindModal">
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:
$('#id-FindModal').modal('show');