How do I block special characters in:
I tried it this way, but it did not really work:
pattern="^ [a-zA-Z0-9] + $"
Does anyone have any ideas?
Thank you in advance!
How do I block special characters in:
I tried it this way, but it did not really work:
pattern="^ [a-zA-Z0-9] + $"
Does anyone have any ideas?
Thank you in advance!
I found a solution:
<input keypress="return String.fromCharCode(event.charCode).match(/[^a-zA-Z0-9]/g) === null">