document.addEventListener('DOMContentLoaded', () => { // Set a delay time in milliseconds between each dropdown opening const delayTime = 500; // Select all dropdowns with the class "Post-It-Drop-Down" const dropdowns = document.querySelectorAll('.Post-It-Drop-Down'); // Sequentially "click" each dropdown with a delay dropdowns.forEach((dropdown, index) => { setTimeout(() => { // Trigger a click event on the dropdown dropdown.click(); }, delayTime * index); }); });