title: jquery increase number if next prev is clicked
body: <p>I'm trying to increase number if next - prev button is clicked. I have four elements, and if I pass on the second element, number should change from 1 to 2, and so on.</p>
  
  <p><a href="https://i.stack.imgur.com/zKuNP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zKuNP.png" alt="enter image description here"></a></p>
  
  <p>My html code is: </p>
  
  <pre><code>        &lt;div class="tl-mask"&gt;
  
  
          &lt;div class="tl-container"&gt;
  
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
              &lt;div class="tl-event"&gt;&lt;/div&gt;
  
  
          &lt;/div&gt; &lt;!-- end .tl-container --&gt;
  
      &lt;/div&gt; &lt;!-- end -tl-mask --&gt;
       &lt;button id="prev"&gt;prev&lt;/button&gt;
       &lt;div class="numbers"&gt;&lt;/div&gt;
       &lt;button id="next"&gt;next&lt;/button&gt;
  </code></pre>
  
  <p>Also, even when I click on Element 2, the number should change to 2</p>