Home > Web Front-end > JS Tutorial > jquery判断字符输入个数(数字英文长度记为1,中文记为2,超过长度自动截取)_jquery

jquery判断字符输入个数(数字英文长度记为1,中文记为2,超过长度自动截取)_jquery

WBOY
Release: 2016-05-16 18:18:34
Original
958 people have browsed it

1. $('textarea#txtPrizeNote'); //表示textarea控件名称
2. 'span' 显示剩余字数的标签
HTML:

复制代码 代码如下:



*

剩余字数:


复制代码 代码如下:


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template