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

191
Vistas
How to append a targeted element thanks to its class

I'm trying to append a footer after a navbar but the nabber does not have an ID and I can't give it an ID. The navbar is the only element in the whole page to have the class "super-navbar" so I'm trying to append it thanks to document.getElementsByClassName('super-navbar')

But it does not work, here is the full code:

headerElement.innerHTML = 'the code I'm trying to append'

const target = document.getElementsByClassName('super-navbar')
const thisElement = target[0]
document.thisElement.appendChild(headerElement);```
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