This doesn’t seem right? Javascript isn’t working

Try this to limit your phone character:

['phone', elem('phone').value.length > 7 && elem('phone').value.length < 11 && /^(\+\d{1,2})?[\d ()-]+$/.test(elem('phone').value)]

As for your email validation, I don’t see something went wrong with that. The error message does disappear after a while.

Hope it helps!

Leave a Comment