Advertisement
Guest User

Untitled

a guest
Oct 14th, 2013
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     $('#button').click(function() {
  3.         var toAdd = $('input[name=checkListItem]').val();
  4.         $('.list').append('<div class="item">' + toAdd + '</div>');
  5.     });
  6.     $(document).on('click', '.item', function() {
  7.         $(this).remove();
  8.     });
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement