title: Owl carousel locating divs
body: <p>i am using owl carousel 2, where i am using the center function. I have 5 items to be displayed on the carousel. Is it possible using jquery to add classes to find certain divs within the carousel, without having to add ids or classes on the div.
  <a href="http://owlcarousel.owlgraphic.com/demos/center.html" rel="nofollow">http://owlcarousel.owlgraphic.com/demos/center.html</a></p>
  
  <p>heres my html</p>
  
  <pre><code>&lt;div class="owl-carousel"&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>heres my js</p>
  
  <pre><code>$(document).ready(function () {
  $(".owl-carousel").owlCarousel({
      center: true,
      items:5,
      loop:true,
      margin:0,
      responsive:{
          600:{
              items:5
          }
      },
      nav:true
  
  });
  
  
  });
  </code></pre>
  
  <p>What i want if you were to view the actual carousel on live would be the addition of these two classes "a" and "b"</p>
  
  <pre><code>&lt;div class="owl-carousel"&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
    &lt;div class="product b"&gt; Your Content &lt;/div&gt;
    &lt;div class="product a"&gt; Your Content &lt;/div&gt;
    &lt;div class="product center"&gt; Your Content &lt;/div&gt;
    &lt;div class="product a"&gt; Your Content &lt;/div&gt;
    &lt;div class="product b"&gt; Your Content &lt;/div&gt;
    &lt;div class="product"&gt; Your Content &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>so i am basically trying to locate the divs next to center and the second div next to center </p>