javascript - Looking for a way to verify ID cards in an input form in real time, supporting mobile and Chinese verification! ! !
我想大声告诉你2017-05-19 10:08:01
0
2
911
The form can be verified in time when inputting. Only numbers and letters X and x can be entered. It will automatically become empty when other inputs are made. Supports both mobile and Chinese verification!
I don’t understand what you want to express. Why does real-time ID card verification support Chinese? There are a lot of regular expressions for ID card verification on the Internet, so find them yourself first.
The setting of automatically emptying is not very user-friendly. The input box should be turned red or have text prompts or something. The general idea is to monitor typing events when typing. If the conditions are not met, handle them accordingly. The conditions are determined by using regular expressions
I don’t understand what you want to express. Why does real-time ID card verification support Chinese?
There are a lot of regular expressions for ID card verification on the Internet, so find them yourself first.
The setting of automatically emptying is not very user-friendly. The input box should be turned red or have text prompts or something.
The general idea is to monitor typing events when typing. If the conditions are not met, handle them accordingly. The conditions are determined by using regular expressions