1
I have a text box that displays the remaining characters, as I do to take this information, using javascript, when the user has already clicked on another text box (per example)?
HTML of the 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")');
});
What do you mean "displaying the remaining characters" and "when the user has already clicked on another text box"? You can explain it better and put together some code so we can figure out what you’ve got?
– Sergio
I already added, cumps
– ihavenokia