Interactive Website: #3 Create a new post


Everything in my code seems to look like the Hint but it says "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."

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


You are missing a dot in your code. Look at this bit of code $( '<li>' ).text(post).prependTo( 'posts' ) ; See it? You are missing the dot right before posts.