Skip to content
RED SAG Skills
hardStudy question · answer published in HTML interview questions, so no pointshtml-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")
  }
})
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions