Count Characters Left


#1

Hi there, I must be missing something... on the Characters Left exercise this code doesn't seem to work! When I submit it it keeps giving the error "Oops, try again. Remember to update the '.counter' to show how many characters are left." Please help! Many thanks.

var main = function(){
    $('.btn').click(function() {
        var post = $('.status-box').val();
        $('<li>').text(post).prependTo('.posts');
        $('.status-box').val('');
    }); 
    
    $('.staus-box').keyup(function() {
        var postLength = $(this).val().length;
        var charactersLeft = (140 - postLength);
        $('.counter').text(charactersLeft);
    });
    
}

$(document).ready(main);

#2

OK now I found the problem... staus-box! The spelling errors can be hard to find!


#3

it doesnt work correctly.