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

123
Views
When I press the button at first it only displays the console.log(message) and in the second click it does the action that I want to
let loginDiv = document.getElementById("lgnInput");
const loginHereBtn = document.getElementById("lgnHere");

loginHereBtn.addEventListener('click', () => {
    if (loginDiv.style.display == "none") {
        loginDiv.style.display = "block";
    } else if (loginDiv.style.display = "block") {
        loginDiv.style.display = "none";
    }
    console.log("I am working now!")
})
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!