Why this error are showing?


#1


i am not sure that my written code is allright. can you help me please !why "Uncaught SyntaxError: missing ) after argument list" are showing this section?


Uncaught SyntaxError: missing ) after argument list


Replace this line with your code. 

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


#2

'<div class='item'>'  // confusing line

do

"<div class='item'>"

#3

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