$(document).ready(function () { var counter = 0; $("#addrow").on("click", function () { var newRow = $("