Another DIV to be targeted too.
var td = " | ";
var tr = "
";
var table = "";
var firstRow = "Content | ";
var lastRow = "More Content | ";
$("a").click( function() {
$("div.target").wrap(td).parent().wrap(tr).parent().wrap(table).parent().prepend(firstRow).append(lastRow);
} );