Add row from one datatable to a different datatable
Add row from one datatable to a different datatable
joan0627
Posts: 5Questions: 3Answers: 0
Hello everyone who can help me with the following: I have a datatable and I want to select a row and obtain the data from it and then when pressing a button, pass the data of that row to another different datatable
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I want that when you click on the shopping cart button, that row with that data is added to the table that you see behind.
And another problem I have is that the button id repeats itself and I get an error.
To get the data from a row you would use the
row().data()
method. What does your current code look like, and what error(s) is it showing?Allan
See if this example helps:
http://live.datatables.net/xijecupo/1/edit
Kevin