I have a piece of code that I found online that auto plays a carousel summary block, but it only plays the first one on the page. Does anyone know a way for me to make it affect only the second summary block on the page? I've been googling and can't find an answer. I'm not great with code.
<!-- Summary Block Autoplay -->
<script>
window.onload = function() {
var nextArrow = document.querySelector(".summary-carousel-pager-next");
function clickNext() {
nextArrow.click();
}
setInterval(clickNext, 3000);
};
</script>