title: How to get ClockPicker for Bootstrap (Plugin) to appear in a Bootstrap Modal pop up form?
body: <p>Here is the link to ClockPicker for Bootstrap: <a href="http://www.jqueryrain.com/?B83aD_dg" rel="noreferrer">http://www.jqueryrain.com/?B83aD_dg</a></p>
  
  <p>It works perfectly; however, when I try to use it to fill in a text-input in a Bootstrap modal pop up, the clock appears behind the modal pop up. How can I get the clock picker to appear in (or in front of) the modal pop up instead?</p>
  
  <p>Here is an image of what happens:</p>
  
  <p><img src="https://i.stack.imgur.com/pTLS1.png" alt="enter image description here"></p>
  
  <p>I've tried changing the z-index of the div to be in front; I've also tried changing the z-index of every element in <code>clockpicker.css</code> to be in front (for example: z-index: 1120). However, all this does is make the clock disappear.</p>
  
  <pre><code>&lt;div class="modal fade appointment-modal"
       id="appointment-modal"
       tabindex="-1"
       role="dialog"
       aria-labelledby="myModalLabel"
       aria-hidden="true"&gt;
  
  &lt;div class="modal-dialog tutors-modal"&gt;
      &lt;div class="modal-content tutors-modal"&gt;
          &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title"&gt;Appointment Scheduler&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body" style="height: 575px; left: 2.5%;"&gt;
              &lt;div class="container"&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="col-md-12"&gt;     
                          &lt;div class="alert alert-danger"&gt;&lt;span class="glyphicon glyphicon-alert"&gt;&lt;/span&gt;
                              &lt;form role="form" action="/portal/make-appointment/" method="post" id="appointment_form" class="form-horizontal"&gt;
                                  &lt;div class="col-lg-6"&gt;
  
                                      &lt;div class="input-group clockpicker" id = "clockpicker" style="padding: 6px; padding-bottom: 20px;"&gt;
                                          &lt;input type="text" class="form-control" id = "time" name="time" value="08:00"&gt;
                                          &lt;span class="input-group-addon"&gt;
                                              &lt;span class="glyphicon glyphicon-time"&gt;&lt;/span&gt;
                                          &lt;/span&gt;
                                      &lt;/div&gt;
                                      &lt;script type="text/javascript"&gt;
                                          var input = $('#time');
                                          input.clockpicker({
                                              autoclose: true
                                          });
                                      &lt;/script&gt;
                                      &lt;input type="submit" name="submit" id="submit" value="Schedule Appointment" class="btn btn-info pull-right"&gt;
                                  &lt;/div&gt;
                              &lt;/form&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>