10/14 It says "Way to go", but the code doesn't work


#1

Hey guys,
I have to do this "to do"-list thing. I entered the following code. Codecademy says, that everything is fine, but when I try to "Add" a thing in the window, nothing happens.

$(document).ready(function () {
$('#button').click(function () {
$(this).addClass('list');
$(this).removeClass('list');
});});

Thanks a lot!


#2

Hi Johanna,

In 10/14 we're just getting the jQuery 'skeleton' ready. You should remove everything inside $(document).ready(function() {...});. You'll work on adding stuff when the button is clicked in the next 4 exercises :)


#3

Thank you :smile: I realized that, too... :smile: