I would like to block the input of all characters except 0-9, az, AZ, only alphanumeric characters. Therefore, when someone dials! for example, nothing is written to the input. How can i do this?
You need to write a function that listens onkeypressfor the event for the form field, then check to see if the form contains any unwanted characters, and if that happens, you will update the field to remove those characters.
onkeypress
Or maybe you can use the Alphanumeric plugin for jQuery :
$('#yourInput').alphanum();
Source: https://habr.com/ru/post/1744536/More articles:Javascript Namespacing. Does JS / Browser increase performance? - performanceHow to change the color of selected links - visual-studio"MaxDegreeOfParallelism" ะดะปั Array.Parallel? - arraysDeploying a web application using ECLIPSE - eclipseIs it possible in this hypothetical situation to perform covariance of generics in C # <4? - generics2-byte (UCS-2) wide lines under GCC - c ++XML :: XML2JSON Element "0" - jsonant ftp does not upload files to subdirectories - ant"The expected initializer before the" integer overflow error - c ++All Articles