Interactive Website


#1

Please help I keep getting the error message: Oops, try again. Remember to update the '.counter' to show how many characters are left.

I don't see what I did wrong I looked at the hint and its typed exactly the same. Any help is appreciated, Thanks.

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

$(document).ready(main);

#2

Hi Camtarg17,

I think you need to remove both of those (lines 6 and 7).


#3

Thank you. That fixed it!