Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 13, 2012 06:25 AM by Angie xu - MSFT
Aug 11, 2012 05:07 PM|LINK
I have 2 tables in a html page. I dynamically, during runtime add additional rows to the first table by clicking an add button.
Then i have a transfer button which when clicked copies all the rows in the first table to the second table.
In the table i have a checkbox in a column. Everything works fine. The data is copied and the checkbox too. But even though i have checked the checkbox in the first table, after the row is copied to the second table, the checkbox in the second table is still
Can someone please help. Thanks in advance.
Aug 11, 2012 05:26 PM|LINK
Please post the code block where you are copying the checkbox to another table.
Aug 11, 2012 05:31 PM|LINK
clone = row1.cloneNode(true);
tbody2 = table2.getElementsByTagName('tr').parentNode;
if this helps...
Aug 11, 2012 05:57 PM|LINK
Sorry but it is not clear with your code how actually you are copying the checkbox.
var chkbx = document.getElementById("CheckBox1");
chkbx.checked = true;
You can check the status of the original checkbox and check/unceck the clone checkbox accordingly.
Aug 13, 2012 06:25 AM|LINK
Please refer to the codes in the link below:
hope it helpful.