5.Count Characters Left


#1

Oops, try again. Remember to update the '.counter' to show how many characters are left. Keeps on being posted after I hit save&submit - what am I doing wrong?

var main = function() {
$('.btn').click(function() {
var post = $('.status-box').val();
$('

').text(post).prependTo('.posts');
$('.status-box').val('');
});
$('.status-box').keyup(function() {
var postLength = $(this).val().length;
var charactersLeft. = 140 - postLength;
$('.counter').text(charactersLeft);
});
}

$(document).ready(main) ;


#2

Hi Cherisemarie,

On line 10 you've got a dot (.) after charactersLeft that needs to be removed :)