I know that in this group they are very capable to help, I need your help, my problem is the following, I want to take the data from a selected row of a table and send the data to another table, but I want a column is not sent to the second table, ....... How can I do it?
This script lists the products in a database.
function listSales () {var nom = $ ("#box"). val ();
$ .get ("CV", {"opc": 1}, function (data) {
var x = JSON.parse(data);
$("#tabla tbody tr").remove();
for(var i = 0;i<x.length;i++){ $("#tablaventas").append("<tr class='fila' ><td>"+(i+1)+"</td<td id='1'>"+x[i].idPro+"</td><td id='2'>"+x[i].nombre+"</td><td id='3'>"+x[i].precio+"</td><td>"+x[i].stock+"</td><td id='cantidad'><input name='' type='text'></td><td id='accion'><input name='' type='checkbox'></td></tr>");}
}); }
This is my table listing the products (table1)
This is the table in which I want the selected row of table 1 to send the data, but I do not want it to send the data of stock, but to send the data that
it is entered in the input.
(table 2)
#
ID
PRODUCT
PRICE
QUANTITY
ACTION