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