title: Display Bootstrap modal on if all required fields are completed
body: <p>Here's my current design:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="col-lg-6 well"&gt;
          &lt;div class="form-group"&gt;
              &lt;label&gt;First Name&lt;/label&gt;
              &lt;input id="fn" class="form-control" required /&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label&gt;Last Name&lt;/label&gt;
              &lt;input id="ln" class="form-control" required /&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;button type="submit" class="btn btn-success" data-toggle="modal" 
                  data-backdrop="static" data-keyboard="false" data-target="#signup"&gt;
                  Submit
              &lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="signup" class="modal fade" role="dialog"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-body"&gt;
                  &lt;p&gt;Signing up. Please wait...&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The design allows me to display a static modal after pressing the submit button. This prevent any user to modify anything during the signup process.</p>
  
  <p>However, the modal skips the validation for required fields:</p>
  
  <p><a href="https://i.stack.imgur.com/Ca5Ek.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ca5Ek.png" alt="enter image description here"></a></p>
  
  <p>Any suggestions on how to trigger the validation first before displaying the modal?</p>