In this video I demonstrate how to implement form validation on the commonly user password and repeat password field pattern with vanilla JS and tight integration to the native HTML client-side field validation implemented in browsers.
I will use the native setCustomValidity method to set a custom error message if the two fields do not match and indicate to the browser that the repeat password field is invalid.