Prohibit and allow entering numbers and other characters in the input field
Come back
19

Prohibit and allow entering numbers and other characters in the input field

The most common check is carried out by regular expressions (of course only through him). I am showing an example of how you can check for a set of possible characters. This is as an example or additional hint of the output of checks for the developer.

Especially you may need to set such checks for the store on prestashop, where the fields for entering the address are displayed.

Below I give examples with the output of checks in javascript using jquery.

Only numbers can be entered:


Only letters can be entered:


Only numbers and letters and a period can be entered:


You can enter everything except the number №:


created:
10.10.2020
updated:
15.11.2022
author:
admin
Tags
yandex metrika