version 1.1, 2024/03/27 20:37:50 |
version 1.2, 2024/03/27 23:12:53 |
Line 26 async function sendData() { |
|
Line 26 async function sendData() { |
|
if(er){ |
if(er){ |
ii.textContent="One or more fields have an error. Please check and try again."; |
ii.textContent="One or more fields have an error. Please check and try again."; |
} else { |
} else { |
ii.textContent="All good." |
var fc = document.querySelectorAll(".wpcf7-form-control"), |
|
bt = document.getElementById("wpcf7-button"); |
|
ii.textContent="All good."; |
|
fc.forEach((f) => { |
|
f.disabled=true; |
|
}); |
|
bt.text="OK" |
} |
} |
}; |
}; |
|
|
Line 41 form.addEventListener("submit", (event) => { |
|
Line 47 form.addEventListener("submit", (event) => { |
|
// e.forEach((f) => { |
// e.forEach((f) => { |
// f.disabled=true; |
// f.disabled=true; |
// }); |
// }); |
// b.value="ONE OR MORE FIELDS HAVE AN ERROR. PLEASE CHECK AND TRY AGAIN"; |
|
|
|
// ONE OR MORE FIELDS HAVE AN ERROR. PLEASE CHECK AND TRY AGAIN. |
|
|
|
// document.getElementById("wp1").disabled=true; |
// document.getElementById("wp1").disabled=true; |
|
|
// document.getElementById("wpcf7-button").disabled=true; |
// document.getElementById("wpcf7-button").disabled=true; |