#EANF#
I have a characters remaining script that works on keyup, keypress, blur,
and change. I need to add to that mix a on load. Here is my code:
$('#title_remaining').html(title);
$('#postshow_showtitle').on('keyup keypress blur change',function() {
var text_length = $('#postshow_showtitle').val().length;
var text_remaining = title - text_length;
$('#title_remaining').html(text_remaining);
});
No comments:
Post a Comment