Exercise 5: error message says "missing ) after argument list"


#1

Here is my code:

('.status-box').keyup(function() { var postLength = (this).val().length;
var charactersLeft = 160 - postLength;
$(’.counter’).text(charactersLeft);
});
});

Here is my error message: SyntaxError: missing ) after argument list.

I have had a play around and I cant seem to get it to pass. please help thank you you.


#2

@willbakerman
please display the FULL code you are using…


#3

@willbakerman,

Please read your other Post
Having some trouple here - Building a responsive website


#4

var main = function() {
('.btn').click(function() { var post = (’.status-box’).val();
('<li>').text(post).prependTo('.posts'); (’.status-box’).val(’’);
}
}
});

('.status-box').keyup(function() { var postLength = (this).val().length;
var charactersLeft = 160 - postLength;
$(’.counter’).text(charactersLeft);
});
});

$(document).ready(main);