Home  >  Q&A  >  body text

javascript - Looking for a way to verify ID cards in an input form in real time, supporting mobile and Chinese verification! ! !

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!

我想大声告诉你我想大声告诉你2731 days ago917

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-19 10:10:01

    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.

    reply
    0
  • 为情所困

    为情所困2017-05-19 10:10:01

    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

    reply
    0
  • Cancelreply