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

348
Visualizações
Javascript hide button on button click

I want to hide button on click button. The query id of the screen where I designed the report is 8. According to this condition, I have a Mail Notification Date field. When I click the button, I assign the clicked value to the mail notification date, when I refresh the page, the code block works correctly, if the date field is full, I hide the button, but I want to hide the button directly when I click the button, how can I do it.

My code;

else if (query_id == 8) {
  setTimeout(function() {
    var table = document.getElementById('tablekit-table-1')
    var tableCount = table.rows.length
    var types = document.querySelectorAll('[id^="col_Mail Bildirim Tarih"]');
    for (var i = 0; i < tableCount - 1; i++) {
      document.getElementById("col_Mail Bildirim_" + i).onclick = function() {
        document.getElementById('col_Mail Bildirim_' + i).children[0].style.display = 'none';
      }
      if (types[i].children[0].innerHTML != "") {
        document.getElementById('col_Mail Bildirim_' + i).children[0].style.display = 'none'
      }
    }

  }, 500);
}

enter image description here

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