AddAttribte

<div>
<span id="spanCounter"></span>
<br />
<asp:TextBox ID="TextBox1" runat="server" Text="Sample Text"
      onkeyup="spanCounter.innerText = this.value.length;"></asp:TextBox>
</div>

posted @ 2013-01-19 15:45  yellowshorts  阅读(121)  评论(0编辑  收藏  举报