Interactive Website: Status Update


#1

can someone explain to me why my code isn't working please? to Create a new post?

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

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

  • #2

    Hi this line

    $('<li>').text(post).prependTo('.post');

    where you write '.post' it should be '.posts' and you should alos have this line at the end (of your code)

    $(document).ready(main);

    #3

    thank you so much :slight_smile: