Status update-->5.Count characters left


I have done everything I believe is right and checker over and over again, but I still get the same message saying "Remember to update the '.counter' to show how many characters are left." and I do not know what to do.

Replace this line with your code. 
var main = function () {
    $('.btn').click(function() {
        var post = $('.status-box').val();
        $('.status-box').val(' ');

    $('.status-box').keyup(function() {
        var postLength = $(this).val().length;
        var charactersLeft = 140 - postLength;



Check on all of your opening and closing curly braces. For this to work, you need your click and keyup functions to be inside your main function.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.