Step 1, getting an error


#1

I keep getting the error:
"Oops, try again. It looks like the Post button didn't add a new message. Remember to prepend a new li element inside the event handler."

This is my code which should be equal to what's in the Hint.

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

  • ').text(post).prependTo('.posts');
    });
    }

    $(document).ready(main);


  • #2

    Oops, I had a "." to much in ('.btn.')..