hi
i have one table where i have select the row by checking check box. I wanted to add selected checkbox rows to another table which is dynamically created when some one check checkbox.
I am waiting for you response
hi
i have one table where i have select the row by checking check box. I wanted to add selected checkbox rows to another table which is dynamically created when some one check checkbox.
I am waiting for you response
Basically as rahul suggested but a minor addition adding clone()
$('#first_table_id input:checkbox').click(function() {
$(this).closest('tr').clone().appendTo('#second_table_id');
});
Jquery API documentation is your friend :)
Hello!!that's great rahul but it's just temporary displayed,it's not loaded into the web page!!when we refresh the page the second table disappear!!i mean we can't get the row's value of the second table!!so can someone do this:remove the row "checked" in the first table and really append it into a new table and then we can use the new table's rows!! can someone help me please?!thanks!!