Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

29
Vistas
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

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.