Code ประมาณนี้ เอาไป Mo เองละกัน
===================================
<script language="JavaScript">
function AddTextBox(amount,name){
var obj = document.getElementById(name);
var tmp;
if (obj){
for (var i=1;i<=amount;i++){
var newRow = obj.insertRow(obj.rows.length);
var newCell = newRow.insertCell(0);
var txtName = obj.rows.length-1;
newCell.innerHTML = "Name: myText"+txtName+" <input type=\"text\" name=\"myText"+txtName+"\">"
}
}
}