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