+ toAdd + problem


#1

im in 14/14 but when i try to enter something in the list instead of what i wrote i get "+ toAdd +"
here's my script

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

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

#2

Hi Mickeljackson,

Those all need to be single quotes, since double and single quotes aren't interchangeable :slightly_smiling: