Usually, diarrhea is a sign/symptom of parasitism. Take as fresh of a fecal sample as possible, as some parasites do not last long in the open environment.
If a parasite is found, they will give a type of dewormer - Drontal, Pyrantel, Metronidazole(more of a GI antibiotic), or Fenbendazole.