I have a text box that shows the remaining characters, how do I get that information, using javascript, when the user has already clicked on another text box (for example)?
HTML box and counter:
<textarea maxlength="210" rows="5" id="aboutPT" style="display: none; resize: none" name=""
class="valid form-control">@dataAbout.PT</textarea>
<p class="pull-right" id="count_message" style="margin-top: 10px; font-size:small"></p>
Script:
$('#overLimit').hide();
$('#aboutPT').keyup(function countPT () {
var text_length = $('#aboutPT').val().length;
var ptRemaining = text_max - text_length;
$('#count_message').html('<span class="label label-default">' + ptRemaining + '</span>' + ' @ResourcesHelper.GetResource(strValorSession, "remainingChars")');
});