how to hide a div element code example Example: hide div elment document.getElementById("payment_period").style.display = "none";