12. Code works well at the test browser, however could not clear


#1

$(document).ready(function(){

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

});

please help on what needs to be changed, thank you!


#2

Hi Venkyrajdora,

The exercise is expecting you to select .list, even though div.list doesn't change the code's behavior :)


#3

Thank you Zystvan, have a good one!


#4