I have this table with some dependents information and there is a add and delete button for each row to add/delete additional dependents. When I click \"add\" button, a new
jQuery has a nice function for removing elements from the DOM.
The closest() function is cool because it will "get the first element that matches the selector by testing the element itself and traversing up through its ancestors."
$(this).closest("tr").remove();
Each delete button could run that very succinct code with a function call.