I'm trying to remove my checked checkboxes using
$(".gone").removeAttr('checked');
If you scroll to the bottom and click + Add new Line it will append another <tr>. What I'm trying to do is remove a <tr> if the checkbox is checked. So if I check multiple boxes it will remove all the <tr>'s that are checked. What am I doing wrong? Why aren't the checkboxes being removed with the above code?
This is my live example: https://jsfiddle.net/nwqmvo36/17/
****UPDATE****
Tried using
$(document).on("click", "div.rem", function() {
$(this).closest("tr:checked").remove();
});
This did not work either. I'm trying different solutions, I just don't understand what I'm doing wrong.