12/14 - Append to Body


#1

what is wrong with my code. i'm getting error like It looks like your toAdd variable doesn't have the right value.

$(document).ready(function() {
$('#button').click(function() {
var toAdd = $('input[name=checkListItem]');
});
});


12/14 - Append to Body not working
#2

Hi,

You haven't done this part of the instruction:

Go ahead and .append() a <div> with class="item" to the .list div of your HTML document,

Give it a go, if you get an error then paste in your code and we will help you


#4

you need to collect the value so add .val(); after $('input[name]=checkListItem]')