Code: Select all
document.querySelector(".chatButtons").addEventListener("click", myFunction);
function myFunction() {
var chatModal = document.getElementById("myForm");
if (chatModal.style.display === "none" || chatModal.style.display === " ") {
chatModal.style.display = "block";
} else {
chatModal.style.display = "none";
}
}< /code>
#myForm { display: none; }< /code>
button
Form here