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

168
Views
JavaScript Navigation Not Working Correctly

The navigation loads correctly at employee.php. I am using bootstrap 5 navigation structure that consist of class="tab-pane fade". When I am on employee.php the code changes to class="tab-pane fade show active".

When I edit a record and save the changes, the url changes example - http:..../pages/tables/table-employee.php?id=807. Because of the php?id=807, the class="tab-pane fade" is not show active. Therefore the navigation will not load correctly.

I edit the URL to: table-employee.php?id=". If the id is 0, how do I have the URL table-employee.php?

Not sure how to solve the issue. Thanks Please see code below:

<div class="tab-pane fade" id="pills-tables">
  <div class="list-group list-group-flush">
     <div class="list-group-item">
      <div class="d-flex w-100 justify-content-between">
       <h5 class="mb-0">Tables</h5>
      </div>
       <small class="mb-0">Some placeholder content</small>
     </div>
       <a href="<?php echo $name; ?>pages/tables/table.php" class="list-group-item"><i class="bi bi-table"></i> Basic Tables</a>
       <a href="<?php echo $name; ?>pages/tables/table-employee.php" class="list-group-item"><i class="bi bi-graph-up"></i> Employee Table</a>
  </div>
</div>

    
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!