Javascript Toggle

Hi there,

I want the modal to appear when clicking on the “Open modal” button. But I wasn’t successful. Please check out src/script.js and help me! Thank you!
Link here.

  modal.classList.remove("hide");

We only use the dot in selectors or querySelector/querySelectorAll.

Oh yes thank you!! That was so silly.

1 Like