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

164
Views
Select a specific view when page is loaded

On the same page i have two different views one is active by default when page load. and for selecting the view i use the id tag like so :

<div id="myTab" class="pull-right">
 <a href="#listView" id="click_v" data-toggle="tab"><span class="btn btn-large"><i class="icon-list"></i></span></a>
 <a href="#blockView" data-toggle="tab"><span class="btn btn-large btn-primary"><i class="icon-th-large"></i></span></a>
</div>

On the second view which is not selected by default, I have a pagination system. When I click on a page number where there is a href='?page=$i' that sends the page number to header, so the page is loaded and I go back to the first view.

I would like to stay on the same view when the page is loaded.

I tried to simulate a click action document.getElementById('click_v').click();, but this is not working.

Thank you in advance

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!