12/14 (Append to Body) This shouldn't work :S


#1

I used this code:

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

instead of:

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

I know what's going on with both codes, I just wanted to report this


#2

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