The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Count the number of characters in a textbox
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

mary jean ligasPosted Nov 13, 2013, 11:27 PM
how will i count a lowercase letter detected in textbox?
kk ppPosted Mar 16, 2011, 8:18 AM
function limiter() { var count = document.getElementById('<%=txtlimit.ClientID%>').value; var tex = document.getElementById('<%=tbx_Message.ClientID%>').value; var len = tex.length; if (len > count) { tex = tex.substring(0, count); document.getElementById('<%=tbx_Message.ClientID%>').value = tex; return false; } document.getElementById('<%=limit.ClientID%>').value = count - len; } <asp:textbox id="tbx_Message" runat="server" textmode="MultiLine" cssclass="text_blue" height="78px" width="250px"></asp:textbox> <asp:textbox id="limit" runat="server" text="160" cssclass="text_blue" width="38px"></asp:textbox> <asp:textbox id="txtlimit" runat="server" text="160" cssclass="text_blue" width="38px" style="display: none"></asp:textbox>
nirajrankaPosted Apr 7, 2010, 12:37 AM
Its a simple good article to get the things done. Cheers www.GonagpuR.com