Home >Web Front-end >JS Tutorial >jquery counts the number of input characters and judges them_jquery

jquery counts the number of input characters and judges them_jquery

WBOY
WBOYOriginal
2016-05-16 17:05:01911browse

1. js code part

Copy code The code is as follows:



2. html part
Copy the code The code is as follows:


< ;span id="name_word">0/30

3. Post a picture to see the effect
jquery counts the number of input characters and judges them_jquery
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