Need help! Append to Body


Hey hey! I'm little bit confused with the code. It seems to be write correctly, but in the preview of full screen I can not press or add text from the "input". What's wrong with my code?

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


On both your functions you're missing a (
so it would be function()


Thanks for the respond! Here is my code, that still doesn't work :

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


You changed your original code, in first post you have this bit correct: $("button")

button is an id so it needs a # before it


Thanks! I shouldn't study coding for 8 hours straight...