Html
<asp:TextBox runat="server" ID="TxtBody" CssClass="form-control" TextMode="MultiLine" Rows="5" placeholder="Body" MaxLength="159" ></asp:TextBox>
<div id="Textremaining"></div>
Javascript
$(document).ready(function() {
var maxChar = 159;
$('#Textremaining').html(maxChar + ' remaining');
$('#<%=TxtBody.ClientID%>').keyup(function() {
var length = $('#<%=TxtBody.ClientID%>').val().length;
var remaining = maxChar - length;
$('#Textremaining').html(remaining + ' characters remaining');
});
});
Carry on, don’t stop. Very nice, I really like your blog… Keep it up.
ReplyDeleteFridge Mats
This is really helpful. You’re doing a great job, Keep it up
ReplyDeleteBest hair extensions
Awesome post!!
ReplyDeleteWondering how to ease the herculean task to maintain clean refrigerator shelves