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

123
Vistas
better to select an element and traverse it to find specific offspring children or to assign css class to the children we want to find?

I'm new to frontend and my question is the following: I have a list of items and I want to remove the last item in some conditions. And it seems to me that there are two options: 1. assign the list with a class, so that I can identify the list by JS and get its child and remove. 2. assign those items with a class, so that I can target the item directly and remove. To me the drawback of 1 is we are not able get the item directly and the the drawback of 2 is we will assign class to too many element. I'm not able to find related best practice, can anyone point me what docs I should take a look or which one is better and why? Thanks

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