Append to Body won't accept answer


#1

I get the following error message on the Append to Body problem 12/14.

Error: Oops, try again. Make sure to use .append() to add your .item to your .list!

The output DOES add list items as expected but it will not give me the pass on this one. I have refreshed the browser several times and I am currently using Chrome version 52.0.2743.116 m (which is considered up to date)

Can anyone provide some insight as to why it's doing what is supposed to happen and yet tells me something is wrong?


$(document).ready(function() {
    $('#button').click(function() {
        var toAdd = $('input[name=checkListItem]').val();
        $('div.list').append('<div class="item">' + toAdd + '</div>');
    });
});


#2

$('div.list').append // you don't need div

instead of just write

$('.list').append

#3

That definitely did it, thank you.


#4