It happens in when childrens are constipated.Generally, the earlier that treatment begins for soiling of clothes, the better. The first step involves clearing the intestine of retained, impacted stool. After that, treatment focuses on encouraging healthy bowel movements.clearing of intestine can be done by laxatives and enemas after consulting pediatrician.
Next Steps
Dietary changes that include more fiber and drinking adequate fluids
Laxatives, gradually discontinuing them once the bowel returns to normal function
Training your child to go to the toilet as soon as possible when the urge to have a bowel movement occurs
A short trial of going off cow's milk or checking for cow's milk intolerance, if indicated