Append to body


hello there! my code works and makes sense too but there is just one problem. when i enter in the input field an item lets say i enter "h", it wont display on screen as "h" instead it displays as [object Object]. what's the problem?

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


you didn't use .val( )method .you should use it to get the values of form elements such as input, select and textarea.


var toAdd = $('input[name=checkListItem]').val();


thanks alot rcodeman :slight_smile: i can't believe i did this silly mistake.