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

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.