hard20 pts · first answer countshtml-cssforms
A field that stays invalid
A form shows "Passwords do not match" forever, even after the user fixes it. What is missing?
confirm.addEventListener("input", () => {
if (confirm.value !== pass.value) {
confirm.setCustomValidity("Passwords do not match")
}
})Discussion 0
Join free to post in the discussion.
Related questions
- What the main element is forFrontend Developer
- article versus sectionFrontend Developer
- Link or buttonFrontend Developer
- What type="email" gives youFrontend Developer
- Why <!DOCTYPE html> mattersFrontend Developer
- The lang attributeFrontend Developer
- Width on a spanFrontend Developer
- Caption for a chart imageFrontend Developer