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

350
Visualizações
How to show and hide pop up onclick in pure javascript?

i have a pop up class called "query-pop-up", i want to show and hide popup onclick in pure js. How to achicve that.

SHould i use addEverntListerner, or somethinge else.

Please let me know using this.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I'm pretty new to Javascript myself, but from what I understand in your question, it seems that you are doing some form of web design and are likely also using HTML and CSS.

You could probably use an addEventListener method, but I think the jquery toggle method would be more convenient because it allows you to 'toggle' between hide and show for all elements. Without further detail, I can't really recommend a specific implementation, but I would suggest to check out the following links:

  • https://www.w3schools.com/howto/howto_js_popup.asp
  • https://www.w3schools.com/howto/howto_js_toggle_class.asp
  • https://www.w3schools.com/jquery/eff_toggle.asp

Hope I was somewhat helpful! Good luck! :)

about 4 years ago · Juan Pablo Isaza Relatório
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