if (n - 1 < 0) return false;
html += "<tr class='removable' data-row=" + n + ">";
html += "<td><select name='asset[" + n + "][type]' id='type-" + n + "'>";
html += $("#type-" + (n - 1)).html();
html += "<td><select name='asset[" + n + "][manuf]' id='manuf-" + n + "'>";
html += $("#manuf-" + (n - 1)).html();
html += "<td><input type='text' placeholder='Serial #' name='asset[" + n + "][serial_num]' id='serial-" + n + "' /></td>";
html += "<td><input type='text' placeholder='MAC Address' name='asset[" + n + "][mac_address]' id='mac-" + n + "' /></td>";
html += "<td><input type='text' placeholder='Name or Desc.' name='asset[" + n + "][description]' id='desc-" + n + "' /></td>";
html += "<td><select name='asset[" + n + "][site]' class='chooseSite' id='site-" + n + "'>";
html += $("#site-" + (n - 1)).html();
html += "<td><input type='text' placeholder='E.G. Level 3 Utility Room' name='asset[" + n + "][location]' id='loc-" + n + "' /></td>";
html += "<td><select name='asset[" + n + "][contact]' id='contact-" + n + "'><select></td>";
$(document).ready(function() {
$("#add").click(function() {
var newRow = $('#myassettable tbody tr').length;
console.log("Adding new Row with ID: " + newRow);
$('#myassettable tbody').append(cloneRow(newRow));
console.log("There are now " + $('#myassettable tbody tr').length + " rows.");
$("#delete").click(function() {
if ($('#myassettable tbody tr').length == 1) {
alert('This is the only one');
if (confirm("Are you sure you wish to delete the last row?")) {
$('#myassettable tbody tr:last').remove();
$('#myassettable tbody').on('change', '.chooseSite', function(e) {
var n = $(this).parents("tr").data("row");
console.log($(this).attr("id"), "changed. Updating contact-" + n);
var response = "<option value='1'>John Smith</option>";
$("#contact-" + n).html(response);