Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!