title: How to open exact image in bootstrap modal after clicking on image in owl carousel?
body: <p>I'm using a Owl Carousel in a Bootstrap project. I want that when I click on a image of the carousel, the modal that is opening, has to show me the exact image (bigger) that I have clicked before, and not the first of the carousel.</p>
  
  <p>Can someone help me, please?</p>
  
  <p>I made a <a href="http://jsfiddle.net/njq4btpg/" rel="nofollow">FIDDLE</a></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="container GListFullWidth"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
  
          &lt;!-- owl-carousel --&gt;
          &lt;div id="owl-onpage"&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/800/500/sports/6/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/600/400/sports/7/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/700/550/sports/8/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/300/600/sports/9/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/800/500/sports/6/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/600/400/sports/7/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/700/550/sports/8/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;div class="item"&gt;&lt;a data-toggle="modal" data-target="#GListModalGallery"&gt;&lt;img src="http://lorempixel.com/300/600/sports/9/" class="img-responsive" /&gt;&lt;/a&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /owl-carousel --&gt;
  
          &lt;span class="caption text-muted"&gt;A Chinese tale tells of some men sent to harm a young girl who, upon seeing her beauty, become her protectors rather than her violators.&lt;/span&gt;
  
          &lt;!-- modalGallery --&gt;
          &lt;div class="modal" id="GListModalGallery" tabindex="-1" role="dialog" aria-labelledby="GListModalGalleryLabel" aria-hidden="true"&gt;
              &lt;div class="modal-dialog"&gt;
                  &lt;div class="modal-content"&gt;
                      &lt;div class="modal-header"&gt;
                          &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-body"&gt;
                          &lt;div id="owl-modal"&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/800/500/sports/6/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/600/400/sports/7/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/700/550/sports/8/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/300/600/sports/9/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/800/500/sports/6/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/600/400/sports/7/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/700/550/sports/8/" /&gt;&lt;/div&gt;
                              &lt;div class="item"&gt;&lt;img src="http://lorempixel.com/300/600/sports/9/" /&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /modalGallery --&gt;
  
      &lt;/div&gt;&lt;!-- /col-md-12 --&gt;
  &lt;/div&gt;&lt;!-- /row --&gt;
  </code></pre>
  
  <p></p>