Thank you for your query,
Your son is having gastroenteritis
and could be due to contamination with bacteria or a virus.
You give sips of oral rehydrating solutions like Pedialyte
, coconut water, lemon water in equal amounts of losses to prevent dehydration
Consult your Pediatrician
for specific management.
Hope i have answered your query.