Можно так как нибудь.
jQuery(function ( $ ) {
$('#contacts a').click(function (e) {
$('#contacts').append(function () {
var num = $('tr', this).length - 2;
return $('<tr />').html(
'<td><input type="text" name="name' + num + '"></td>' +
'<td><input type="text" name="email' + num + '"></td>'
).prepend(function () {
return $('<td />').html(function () {
return num < 1 ? '' : $('<img src="http://s1.iconbird.com/ico/0912/fugue/w32h321349011799cross.png" />').click(function (e) {
$(this).parents('tr').remove();
});
});
});
});
}).click();
});