Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edomaru/dba4f21994359bd611c5 to your computer and use it in GitHub Desktop.
Save edomaru/dba4f21994359bd611c5 to your computer and use it in GitHub Desktop.
jQuery Command for table manipulation

Add new row to the last row of table

$('#myTable tr:last').after('<tr>...</tr><tr>...</tr>');

Remove current row of the table

$(this).closest('tr').remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment