The Counter


#1



https://www.codecademy.com/courses/web-beginner-en-hk5qh/0/5?content_from=make-an-interactive-website%3Ajquery-dom-manipulation#


the counter is not updating

var main = function() {
$('.btn').click(function() {
...
});

$('.status-box').keyup(function() {
var postLength = $(this).val().length;
var charactersLeft = 140 - postLength;
$('.counter').text(charactersLeft);
});
}
$(document).ready(main);

`


#2

Hi @haileyldo,

Could you please post your full code? The part you've posted there looks fine.

Also, what's the error message you're getting?


#4

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