jQuery ::: Does remove really remove?
Posted
by phpN00b
on Stack Overflow
See other posts from Stack Overflow
or by phpN00b
Published on 2010-02-02T16:35:19Z
Indexed on
2010/04/19
16:03 UTC
Read the original article
Hit count: 422
I'm trying to remove a table row using jQuery, and while it disappears from the screen, and therefore, appears to work, in Firebug, I can still see the code for it. There are form elements in this row, and so, I want to understand whether the row is truly being deleted or not, because I wouldn't want those values submitted. So, does remove really remove? Below is the code I'm using... Maybe I'm doing it wrong?
if($('.delete')) {
$(".delete").live('click', function(event) {
$(this).closest('tr').remove();
});
}
© Stack Overflow or respective owner