document.addEventListener("DOMContentLoaded", function () { var input = document.getElementById("eventDate"); input.setAttribute("min", "2024-07-26"); input.setAttribute("max", "2024-08-11"); });