Add button does not work. I have read everything here


So I have been staring at this code for ages now. The exercise lets me through, says its fine, proceed to the next lesson. But it doesn't WORK!

This is a the ADD section of the code. I would like to understand this. So if someone can tell me why my ADD button will not work, that would be great. I can not click it and nothing shows up in a list below. Is it a typo somewhere or something? I can not figure this out at all!

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


obviously as soon as I post this I find my problem.


' + toAdd + '



' + toAdd + '

That stupid little dot before list has caused me all this pain.

Thanks anyway.


Okay! Cool you figured that out. :wink:


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