Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
fetching the class which is active in jquery and calling another javascript function

I have this screenshot

https://prnt.sc/265hkiq and wanted to fetch the active class so i can call another JS function called as filter_JS

basically the filter_JS function runs when i click anywhere in pagination, but i am trying to find a way that when a page is reloaded, how can i make sure that it does not reset to 1 back again. because on pageload the function filter_JS does not run, it only runs when i click on the pagination

i am trying to do something like this

<script type="text/javascript">
if('#pagination').find('span').hasclass('active')
</script>  

but i think it will fail because on page reload there will no span active and it has already moved to 1, how can i fix it using anything which is not server specific , maybe using using some local storage or how?

any clues, any sample which can guide me with this will be helpful

Thanks

about 4 years 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 vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda