13, what is wrong?


#1

$(document).ready(function(){
$(#button).click(function(){
var toAdd=$("input[name=checkListItem]").val();
$(".list").append("

" + toAdd + "
");
});
$(document).on(".click",".item",function() {
$(this).remove();
});
});

#2

Please edit your Post,
select the code you have present
and then =click= on the pre-code-button </> in the top of the editor.

The problem with this editor is, that it interprete's valid HTML-code which is then NOT visible to us anymore....


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

#4

nvm the #button was not in quotation marks


#5

This should help:

n = [3, 5, 7]

def double_list(x):
for i in range(0, len(x)):
x[i] = x[i] * 2
# Don't forget to return your new list!
return x

print double_list(n)