Lesson 3 Modifying HTML Elements


It says my code is correct but when I try to test it in the window nothing happens. My code is below - what am I missing? Thanks!

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


Hi Kelsea,

You haven't closed your $(document).on(...); piece of code properly. Before the closing parenthesis ()) on the next to last line, add a closing curly brace (}), so that the line looks like this:



Thank you!! That fixed it!