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

338
Views
JS classList.add and classList.remove not functioning in my popup html/css

so i am trying to create a html popup using CSS for styling and javascript for the popup motion. However, it's my first time using VS code to do it but somehow, it doesn't function.

Please help.

document.getElementById("open-popup-button");
document.addEventListener("click",function(){document.getElementsByClassName("popup")[0].classList.add("active")});

document.getElementById("dismiss-popup-button");
document.addEventListener("click",function(){document.getElementsByClassName("popup")[0].classList.remove("active")});
about 4 years ago · Santiago Gelvez
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!