View Single Post
Old 10-30-2012, 07:44 PM   #4
henryc10
Registered User
 
Join Date: Oct 2012
Posts: 33
try this

<asp:TextBox ID="txtValue" runat="server"TextMode="MultiLine" Rows="10"Columns="50"></asp:TextBox>

$(document).ready(function(){
var MaxLength = 250;
$('#txtValue').keypress(function(e)
{
if ($(this).val().length >= MaxLength)
{
e.preventDefault();
}
});});
henryc10 is offline   Reply With Quote