10. Modifying HTML Elements


#1

Please help me with the correct code. The program accepts any. But it doesn't work.

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

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

#2

Err... Please help specify exact exercise.


#3

Unfortunately there is no way to prove, what is correct.
And I am somehow lost. I guess, I need to read some other sources about jQuery.

Thank you for help!


#4

The exercise is 10 Set Up


#5

If 10, it says: You know the drill. Get your document .ready()!


#6

That's it?
)))))))))))))))


#7

You're welcome.

Have fun coding! :smile:


#8

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