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

163
Visualizações
Jquery function to hide one div on button click not all of them

So in this code i generate divs on button click and i need to wrote a jquery function to hide the div but if i make 2 or more divs on the button click every one of them dissapears and i only need to hide just the one that i press the button on

$("#payBtn").click(function(){
          $("#div5").hide(1000)

Here is the code snippet so you can try it and see what im trying to achieve : https://codesandbox.io/s/twilight-star-26ybq7?file=/index.html the ID input has to have at least 3 capital letters and 10 characters like:123SSSgggg.

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