Hi everyone,
I have a webpage recording invoices details in power apps portal.
Quantity value is displayed as "1.00000", so I tried deleting extra 0 after decimal point through the below code.

When putting the code in chrome console, it works. But including it in webpage's custom Javascript, it didn't.
document. ready was included as well, not sure about the reason.
$(function() {
$("#invoicedetails td:contains('.00000')").each(function(){
var txt = $(this).text();
$(this).html(
txt.replace(/\.00000/g,'')
);
});
});
Any idea, please kindly share with me. Thanks in advance!