I have a jQuery-based form where you can add extra people to the application. I\'m cloning the first fieldset and adding it onto the end up to a max of 3 additional people.
You can do this for delete the parent:
$(document).on("click", ".remove", function() { $(this).parent().remove(); });
or you can do this for delete all parents:
$(document).on("click", ".remove", function() { $(this).parents().remove(); });