JS table when a new row how to add this line style were also incorporated into e.g. <TR class = "TRD0"> . 5
The JS:
var = Tab document.getElementById ( "Tab");
var newTr tab.insertRow = (-1);
newTr.id = "tr_" + TRID;
first column //; var newTdContent = newTr.insertCell (1 )
var newTdCaoZuo = newTr.insertCell (2); // second column
// set two data
newTdContent.innerHTML = "<textarea rows = ' 5' cols = '40'name =' getContent 'id =' getContent '> "+ content.value +" </ TextArea> ";
newTdCaoZuo.innerHTML =" <INPUT type = "Button" the onclick = 'moveTr ( "+ TRID +") "value =' remove '>";
now, add table in which the line's table with which new lines are represented different, because the new table style which is defined
table
<TR class = "TRD0">
<TD> .. < /td>
<tr>
var = Tab document.getElementById ( "Tab");
var newTr tab.insertRow = (-1);
newTr.id = "tr_" + TRID;
first column //; var newTdContent = newTr.insertCell (1 )
var newTdCaoZuo = newTr.insertCell (2); // second column
// set two data
newTdContent.innerHTML = "<textarea rows = ' 5' cols = '40'name =' getContent 'id =' getContent '> "+ content.value +" </ TextArea> ";
newTdCaoZuo.innerHTML =" <INPUT type = "Button" the onclick = 'moveTr ( "+ TRID +") "value =' remove '>";
now, add table in which the line's table with which new lines are represented different, because the new table style which is defined
table
<TR class = "TRD0">
<TD> .. < /td>
<tr>
Solution:
newTr.setAttribute("class", "trd0");
newTr.className = "trd0";