title: After alert for file uploading close the modal pop up
body: <p>I have a scenario where I am <em>uploading</em> file using <code>IFRAME</code>. What I want is after succesfully uploading file, I want to close the <code>modal</code> pop up. But it is not working in my case. I tried like below</p>
  
  <pre><code>function CloseWindowFunction() {
          alert('PDF uploaded successfully');
          $('.modal-dialog').modal('toggle');
      }
  </code></pre>
  
  <p>Also see the html for the same</p>
  
  <pre><code>&lt;div class="modal fade" id="dvFileUpload" tabindex="-1" role="dialog" aria-labelledby="dvFileUploadTitle" aria-hidden="true" data-backdrop="static" data-keyboard="false"&gt;
      &lt;div class="modal-dialog" role="document"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;h5 class="modal-title" id="exampleModalLongTitle"&gt;File Upload&lt;/h5&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                      &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
              &lt;div class="modal-body" data-keyboard="false"&gt;
                  &lt;iframe id="ifrmFileUpload" clientidmode="Static" runat="server" style="overflow: hidden; border: none" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So, how should I close that modal popup because my code is not working with <code>toggle</code> property.</p>