Allegedly topic finished, but i can not post a message


There is no error message, Topic says i finished it. But it says i can post a message now. And i can not. The error is 'script error'

var main = function() {
   $('.btn').click(function() {
   var post = $('.status-box').val();

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





Ah i found my own mistake by comparing it with the code shown in the beginning of the Topic.
It was the "." in $('.<li>').text(post).prependTo('.posts');
It is not supposed to be there


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