Copying data from one column to another
Copying data from one column to another
I have a table of data (with 20 columns) that I am displaying using dataTables. I also have an assignment button (id=assign). What I am trying to do is copy the data in column#14 to column#20 when i click the button. I might do this on all the rows or a selection of them. my code looks like this.
[code]
$(document).ready(function() {
var oTable = $('#myTable').dataTable();
$('#assign').click(function() {
var selectedRecords = oTable.fnSettings().aiDisplay; //gives an array of row indices
for(i=0;i
[code]
$(document).ready(function() {
var oTable = $('#myTable').dataTable();
$('#assign').click(function() {
var selectedRecords = oTable.fnSettings().aiDisplay; //gives an array of row indices
for(i=0;i
This discussion has been closed.
Replies
Allan