I'm developing a system and in a certain part it has the following structure, image below
Followthecode
WhatIwanttodoiswhentheusertypesinthe"Braces" field and in the field "Weight" he makes an account and returns the value in the field "Total Prod."
But this in each line, as shown below:
Itriedtodothis,codebelow:
$(document).ready(function(){$(document).on('change','.peso',function(){varv=$(this).val();varc=$(".bracas").val();
$(".total_prod").val(v*c);
});
});
However, all the fields "Total Prod." is filled in.
Could you please help me with this?