HTML5 form validation pattern alphanumeric with spaces?

How about adding a space in the pattern attribute like pattern="[a-zA-Z0-9 ]+".
If you want to support any kind of space try pattern="[a-zA-Z0-9\s]+"

Leave a Comment