form.addEventListener(“submit”, (e)=>{}) doesn’t work
I am using the javaScript Constraint Validation API to validate a form. It’s a book form with 3 inputs: title, author, and pages. I was trying to stop the form from submitting when constraints are not met but it keeps submitting.
Valibot: Password Confirmation Error Not Displaying
I’m trying to validate that two passwords match and display an error if they do not. However, the error message is not showing up in my Vue component. Here is the relevant part of my code: