Disable the button 1


#1

I've been here for three days stuck on this. I need some help
I'm on make an interactive Website, Disable the button 1.

It says i have an Unexpected token {

$('.status-box').keyup(function()  }
  var postLength = $(this).val().length;
  var charactersLeft = 140 - postlength;
  $('.counter').text(charactersLeft);
  }
  });
  if (charactersLeft < 0) {
      $('.btn').addClass('disabled');
}
 else if(charactersLeft == 140) {
     $('.btn').addClass('disabled')
}
else {
    $('.btn').removeClass('disabled')
}
});
$('.btn').addClass('disabled');
}
$(document).ready(main);

#2

Your first curly bracket, check it.


#3

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