Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda