Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

86
Vistas
Making a next button select next item in a dom List

Hello I'm trying to find a way to make a next button in react to get next video, by selecting the next dom element in my list. HTMLCollection(3) [li.video-item.item, li.video-item.item, li.video-item.item] this is what I get in console, from a function I made:

const handleNext = (event) => {
    let listItems = document.getElementsByClassName("video-item")
    console.log(listItems);
    
}

problem is I just want the next element and make it click with a "next button" Im creating.

Thx

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda