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

182
Views
Hide the Nav Bar When the Pop Up Opens

I Have a Landing Page.

The Mobile Has a Fixed Nav Bar in the Bottom Section.

Also Have a Pop-Up Form That Opens As a Result of a Click.

How Can We Ensure That This Nav Bar Is Closed When the Form Is Opened?

It Blocks the Send Button.

https://filexus.com/landing/

Can We Do This With JavaScript?

Nav Bar:

<div class="navbar1">
    <a href="#" class="product-action-btn-1" title="Quick View" data-bs-toggle="modal" data-bs-target="#exampleModal"></i>Take an Offer</a>
</div>

enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

You can do this using the css z-index instead of javascript.

Right now you have that bottom nav bar with z-index: 9999, but your .modal z-index is 1060, so if you want the modal to render on top, all you have to do is set the .modal z-index to a higher number than the .navbar1 z-index.

So the easiest fix is simply:

.modal{ z-index: 10000;}
about 4 years ago · Juan Pablo Isaza Report

0

You're probably best off creating a class to hide the element, then toggling that when you call the modal or dismiss it.

document.getElementsByClassName('navbar1')[0].classList.add('hidden')
document.getElementsByClassName('navbar1')[0].classList.remove('hidden')

You could also use classList.toggle if dismissal happens within the same function as the call.

about 4 years ago · Juan Pablo Isaza Report

0

Hide your Navbar when clicked.

<script>
function hideNav() {
  document.getElementsByClassName("navbar1").style.display = "none";
}
</script>


<div class="navbar1">
    <a onclick="hideNav()"  href="#" class="product-action-btn-1" title="Quick View" data-bs-toggle="modal" data-bs-target="#exampleModal"></i>Take an Offer</a>
</div>
about 4 years ago · Juan Pablo Isaza Report
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!