Delete child table row and total field automatically refresh

I want if i delete the row total automatically change can anyone plz help me with client script

Thank you it’s work

@praveenkumarcse2211
I need fetch customer data 1 doctype to another doctype but base on country
another doctype i want to show only 2 country filter data
can you help on that