Adrian• 270
@EidrianMax
Posted
I do not fully understand the question, but if you want to return the email that was given as successful, you can save it in a variable when you submit the form and then paint it in the ui.
form.addEventListener('submit', (event) => {
event.preventDefault()
validateEmail(email.value)
// save email
const emailSuccess = email.value
// then print in ui
feedback.textContent = emailSuccess
})
0