function myFunction() { var x = document.getElementById("upload-job-file"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } }