Or it may happen if your child gets sick from a virus. Long-term (chronic). Diarrhea that lasts for a few weeks. This may be caused by another health problem, such as irritable bowel syndrome. It can ...