trying to add an .onchange event to a field in a grid, but it doesn’t seem to fire.
this is the url: (master/detail edit)
workorderheaderedit.php?showdetail=workorderdetail&id=10007
i’ve tried adding to:
workorderdetalgrid.php
workorderdetaledit.php
as:
loadjs.ready(“load”, function() {
// Startup script
console.log(“page loaded”);
$(‘#x_quantity’).on(‘keyup keypress blur change’, function(e) {
var qty = $(“#x_quantity”).val();
var item_cost = $(“#x_unit_price”).val();
var line_ttl = (qty * item_cost);
line_ttl = parseFloat(line_ttl).toFixed(2);
$(“#x_extended”).val(line_ttl);
});
});
i don’t even see the ‘page loaded’ event fire, as well as anything for the grid portion of the form
not sure where to add the code.
thxs