如何显示文本框中要输入的数量 [英] how to display how many left to type in the text box

查看:67
本文介绍了如何显示文本框中要输入的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当用户使用javascript将字符键入文本框时,我想显示要在文本框中键入的字符数


我该怎么做?

解决方案

假设你有类似的东西:

展开 | 选择 | Wrap | 行号



假设你有类似的东西:

展开 | 选择 | Wrap | 行号


很高兴它帮助修复它。


在页面加载后不要使用document.write。


请记住用[/ code]关闭代码标签,否则代码不会显示为代码。

Hi

I want to display the number of character to type in a textbox when ever user types a character to the text box using javascript

How can I do that?

解决方案

Assuming you have something like:

Expand|Select|Wrap|Line Numbers


Assuming you have something like:

Expand|Select|Wrap|Line Numbers


Glad it helped fix it.

Don''t use document.write after the page has loaded.

Remember to close your code tags with [/code] otherwise the code won''t appear as code.


这篇关于如何显示文本框中要输入的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆