mirror of
https://github.com/Rainyy21/Front-end-Design-Project.git
synced 2026-10-11 00:30:23 -04:00
change how the form work
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// open log button
|
||||
const modal = document.getElementById("#formModal");
|
||||
const openbtn = document.getElementById("#openForm");
|
||||
const closebtn = document.getElementsByClassName("#closeForm");
|
||||
|
||||
openbtn.addEventListener("click", function() {
|
||||
modal.showModal();
|
||||
});
|
||||
|
||||
closebtn.addEventListener("click", function() {
|
||||
modal.close();
|
||||
}) ;
|
||||
Reference in New Issue
Block a user