title: Selecting multiple second instances of a queryselectorAll element?
body: <p>I am using Chartist and I need to send some data to the repeated second occurrence of an element. For example, there are two &quot;ct-bar&quot; elements inside every &quot;ct-series&quot; element. I need to select the second &quot;ct-bar&quot; element that is contained in each of the &quot;ct-series&quot; elements. I have tried doing this with a for loop and some other ways to no avail. How can I achieve this?</p>
  <p>JS</p>
  <pre><code>const series = xChart.querySelectorAll('.ct-series .ct-bar')
  for (var i = 0; i &lt; series.length; i++) {
                          this.element = series[i];
                          var seriesNext = series[1]
                      }
  </code></pre>