lundi 16 juillet 2018

HTML - Pattern for more words

I have an input text and i want to put a pattern to use only characters without numbers for name. I was trying with this but doesn't work. If i write the name he alert me to type the name.

<b>Persoana de contact</b><font color="red">*</font> <input type="text" pattern="[A-Za-z]" class="form-control" name="contact" required="" oninvalid="this.setCustomValidity('Adaugati va rugam numele persoanei de contact.')" oninput="setCustomValidity('')">

Aucun commentaire:

Enregistrer un commentaire