13/14 Remove what's been clicked


#1

The code works as needed, though there's a mistake:
"Oops, try again. Did you call .remove() on $(this) ?"

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

#2


#3

Yes, thank you, got it.


#4