version 1.4, 2024/03/27 23:19:24 |
version 1.7, 2024/03/27 23:29:09 |
Line 27 async function sendData() { |
|
Line 27 async function sendData() { |
|
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 { |
var fc = document.querySelectorAll(".wpcf7-form-control"), |
var fc = document.querySelectorAll(".wpcf7-form-control"), |
bt = document.querySelector(".wpcf7-button"); |
bt = document.querySelector("#wpcf7-button"); |
ii.textContent="All good."; |
ii.textContent="All good."; |
fc.forEach((f) => { |
fc.forEach((f) => { |
f.disabled=true; |
f.disabled=true; |
|
f.visibility="hidden"; |
|
console.log(f); |
}); |
}); |
bt.disabled=true; |
// bt.style.visibility="hidden"; |
bt.value="OK"; |
|
} |
} |
}; |
}; |
|
|