Home >Web Front-end >JS Tutorial >It is forbidden to enter non-numeric characters in the text box, such as mobile phone number and postal code_javascript skills

It is forbidden to enter non-numeric characters in the text box, such as mobile phone number and postal code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:25:141181browse

At work, I always encounter many text boxes that prohibit the input of non-numeric characters, such as mobile phone number, zip code

Copy code The code is as follows:








< script src="http://libs.baidu.com/jquery/1.9.0/jquery.js">





Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn