I have to add new row in html table where it generate text boxes from first row as inner html and shows text of first row as well.
In picture you see last row is same as first row when I press Add Language button. But I want new row should be blank.

function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
// limit the user from creating fields more than your limits
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for(var i=0; i<colCount; i++) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
}
I have put $('.small').val('Some text'); but it text boxes disappeared then.
Please note there are multiple tables at page and we use same function to generate rows.