I am new asp.net now I need to visually indicate to the user when the textbox limit exceeded. Please give a solution.
<asp:TextBox ID="Txtbox"runat="server" Height="50px" TextMode="MultiLine"
Width="150px" MaxLength="50"></asp:TextBox>
home / developersection / forums / visually indicate to the user when the textbox limit has been exceeded
I am new asp.net now I need to visually indicate to the user when the textbox limit exceeded. Please give a solution.
<asp:TextBox ID="Txtbox"runat="server" Height="50px" TextMode="MultiLine"
Width="150px" MaxLength="50"></asp:TextBox>
Anonymous User
03-Dec-2014Try this
$("#Txtbox").on('input',function () {if($(this).val().length == $(this).attr('maxlength')) {
$(this).css('background-color','red');
}
});