i have a input field i have validated using pattern see below, this works and doesn't allow white-spaces, however when i need to enter a customers name i need to enter bob marley but it wont let me submit the form because it contains a white space is there any way around this?
thanks for your help in advance
i have researched regular expression but cant seem to work out if what i need to do is possible
<input type='text' class='form-control'
name='lead_name' pattern='^[\S]+$' required>
Aucun commentaire:
Enregistrer un commentaire