Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Only works for existing button.remove elements
- $('#broken button.remove').on('click', function(){
- $(this).remove();
- });
- // Works for existing button.remove elements, and new ones added dynamically
- $('#working').on('click', 'button.remove', function(){
- $(this).remove();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement