6 lines
199 B
JavaScript
6 lines
199 B
JavaScript
|
document.querySelectorAll(".order form")
|
||
|
.forEach(e => e.addEventListener("submit", ev => {
|
||
|
if (!confirm("Do you really want to remove this ?"))
|
||
|
ev.preventDefault();
|
||
|
}));
|