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

111
Views
Imported HTML menu won't drop down Bootstrap

If I use the navbar HTML code directly on the page, all works well. If I import the navbar, when I resize the page, the dropdown menu botton doesn't do anything.

<head>
   <script
        src="https://code.jquery.com/jquery-3.3.1.js"
        integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
        crossorigin="anonymous">
    </script>
    <script> 
        $(function(){
         $("#headerID").load("partials/_navbar.html"); 
          $("#footerID").load("partials/_footer.html"); 
        });
    </script> 
</head>
<body>
    <div class="container-scroller">
      <div class="main-panel">
        
        <header id="header">
        <div id="headerID"></div>
        </header>

     </div>
    </div>
</body>

There is more in the head, but like I said, if I replace <div id="headerID"></div> with the HTML code from _navbar.html all works well. The problem occurs when I import the HTML code.

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!