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
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?
See if this example helps:
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.