469,313 Members | 2,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

count no of values enter into the textbox through javascript

30
count no of values enter into the textbox through javascript that should be dispalyed in one label control.
Mar 24 '08 #1
1 1544
hsriat
1,654 Expert 1GB
count no of values enter into the textbox through javascript that should be dispalyed in one label control.
[html]<textarea id="textId" name="textName" onkeyup="document.getElementById('counter').innerH TML=this.value.length;"></textarea><span id="counter"></span>[/html]
For multiple textareas, use unique id for each counter span.
Mar 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Yellowbird | last post: by
9 posts views Thread by refer_to_website | last post: by
9 posts views Thread by Jerry | last post: by
1 post views Thread by colleen1980 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.