Hi,
I have a function to add extra rows to my table, when user click 'Add' buton. One of the input fields in my row is a checkbox. I have problem trying to align the checkbox (horizontally). The checkbox in original rows are aligning ok. Only the one that got added later are left adjusted.
Below is my code. Please help.
I have a function to add extra rows to my table, when user click 'Add' buton. One of the input fields in my row is a checkbox. I have problem trying to align the checkbox (horizontally). The checkbox in original rows are aligning ok. Only the one that got added later are left adjusted.
Below is my code. Please help.
Code:
var cell34 = row.insertCell(34);
var c9 = document.createElement('input');
c9.type = 'checkbox';
c9.name = 'XDEL' + iteration;
c9.align = "center";
cell34.appendChild(c9);
//original cell
<td class="ver10pxblk" align="center"><input type="checkbox" name="XDEL<%=i%>" id="c9_<%=i%>" ></td>