-1
const dropzoneBtnList = document.querySelectorAll(".custom-dropzones-wrapper .dropzone-btn");       
     dropzoneBtnList.forEach((dropzoneBtn) => {
    dropzoneBtn.addEventListener('click',function(e){
    e.currentTarget.classList.toggle("active");
    })
})

How to run this script only after loading the webpage

Calculuswhiz
  • 3,244
  • 9
  • 21
  • 35

0 Answers0