1
How do I block special characters in:
I tried this way, but it didn’t really work:
Pattern=" [a-za-Z0-9]+$"
Does anyone have any idea?
Thanks in advance !
1
How do I block special characters in:
I tried this way, but it didn’t really work:
Pattern=" [a-za-Z0-9]+$"
Does anyone have any idea?
Thanks in advance !
1
I found a solution:
<input keypress="return String.fromCharCode(event.charCode).match(/[^a-zA-Z0-9]/g) === null">
Browser other questions tagged angularjs angular
You are not signed in. Login or sign up in order to post.