안녕에 첫 번째 행하기 전에 새 행을 추가 :다음과 같이 내가 코드를 자바 스크립트
function addRowToTable(num){
if (hasLoaded) {
var tbl = document.getElementById(TABLE_NAME);
var nextRow = tbl.tBodies[0].rows.length;
var iteration = nextRow + ROW_BASE;
if (num == null) {
num = nextRow;
} else {
iteration = num + ROW_BASE;
}
// add the row
var row = tbl.tBodies[0].insertRow(num);
// cell
var cell0 = row.insertCell(0);
var LNInpT = document.createElement('input');
LNInpT.setAttribute('type', 'text');
LNInpT.setAttribute('value', 'name');
cell0.appendChild(LNInpT);
// Pass in the elements you want to reference later
// Store the myRow object in each row
row.myRow = new myRowObject(textNode, txtInp, cbEl, raEl);
}}
날이 코드를 편집하여 테이블의 첫 번째 행하기 전에 새 행을 추가하는 데 도움이 바랍니다. 탱크
당신이 ('#의 myTable에의 TR : 첫 번째') $를 사용하는 것으로 간주 되세요 ('