P
Stephen Ostler• 210
@steveostler
Posted
Nice solution. Can the email address be made to show in the success message?
<p>A confirmation email has been sent to <span class="submitted">[email protected]</span>. Please open it and click the button inside to confirm your subscription.
</p>
const submittedEmail = document.querySelector(".submitted");
if (validateEmail(email.value)){
submittedEmail.innerText = email.value;
toggleCards();
email.value = "";
signUpForm.classList.remove("error")
Marked as helpful
0
Shiv• 350
@undrthegraveyard
Posted
@steveostler ahh, I see. Thank you so much for the tip!
0