estilizando modal produtos

This commit is contained in:
2024-12-11 23:01:11 -03:00
parent e5ef3898d0
commit ae5d47fa7c
8 changed files with 102 additions and 71 deletions

View File

@@ -1,2 +1,20 @@
function openModal() {
document.getElementById('myModal').style.display = 'block';
}
function closeModal() {
document.getElementById('myModal').style.display = 'none';
}
document.getElementById('openModal').addEventListener('click', openModal);
document.getElementById('productForm').addEventListener('submit', function(event) {
event.preventDefault();
// const productName = document.getElementById('productName').value;
// const productPrice = document.getElementById('productPrice').value;
// const productDescription = document.getElementById('productDescription').value;
// closeModal();
});