Is there a way to check if a text input, on change, has a number in the string without using regex and only using just javascript?
For example (this may not be a good approach, I am unsure):
const passwordInput = document.querySelector("#password");
passwordInput.addEventListener("change", e => {
if (e.target.value contains a number) {
console.log("Must contain a number.")
}
})