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

200
Views
How to get this Javascript to work in HTML

So I have this Javascript so when the screen is a certain size a button appears and you can hit the button for the navbar. However, it won't work, I have put the code in the nav section and the body and both did not work. Here is the JS:

<script>
    var navbar = document.getElementById(".navbarNav");
      function hideShow() {
        if (navbar.style.display == "block") {
          navbar.style.display = "none";
        } else {
          navbar.style.display = "block";
        }
      }
</script>
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!