Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

344
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!