I have this table, as seen in the capture , where the data is dynamically added to the search engine with jQuery
.
I need to get the value of% co_of% Amount , when the% co_of% of the Discount is activated.
In each row Input
I have Checkbox
and one column td
with the ID of the product, for the moment I have only managed to capture the ID and the status of Inputs
:
$(document).on("click",".activate_descuento",function(){
var valores = "";
$(this).parents("tr").find("td").each(function() {
valores += $(this).html() + "\n";
});
console.log(valores);
alert(valores);
});
NOTE: If there are many products that you can add, the Quantity as other tr
have the same CheckBox
and Inputs
therefore it will behave as a vector.