Skip to content

Instantly share code, notes, and snippets.

@bekapod
Created October 26, 2015 14:40
Show Gist options
  • Save bekapod/71608cf2dbc8dfbe3f19 to your computer and use it in GitHub Desktop.
Save bekapod/71608cf2dbc8dfbe3f19 to your computer and use it in GitHub Desktop.
JQUERY: detach
/* Title: detach
* Description: take element off the DOM while manipulating them
*/
var table = $('#some-table');
var parent = table.parent();
table.detach();
table.addLotsAndLotsOfRows();
parent.append(table);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment