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

346
Vistas
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 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