Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('#button').click(function() {
- var toAdd = $('input[name=checkListItem]').val();
- $('.list').append('<div class="item">' + toAdd + '</div>');
- });
- $(document).on('click', '.item', function() {
- $(this).remove();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement