Interactive Website: #3 Create a new post


#1

https://www.codecademy.com/en/courses/web-beginner-en-hk5qh/0/3?content_from=make-an-interactive-website%3Ajquery-dom-manipulation#

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' ) ;
});
}
$(document).ready(main);

#2

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.