12.Append to Body (Some help please)



I'm stuck in this lesson for about 1 to 2 days and I can't figure out what I'm doing wrong. Can someone help me or at least point me to another topic which can provide me some help. (The last ERROR message it gives me is the one below and I have changed the "<>" so "div" can be displayed.)

"Oops, try again. It looks like you didn't append() a new >div< to your .list."

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


var toAdd=$("input[name=checkListItem]").val();

   $('.list').append('<div class='item'>' + toAdd + '</div>')



Try again :stuck_out_tongue:


It looks ok to my submission.


Oh it worked thanks ! What I was doing wrong was that I was putting double quotes in the opening and in class i putted single quotation.
Still can't find the difference but it's ok.


:joy: That's my first mistake too.


Well ok thanks a lot again!


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.