Thanks for your query.
your son is having diarrhea
which is usually viral in origin and takes few days to settle.
most important thing is to maintain proper hydration,i advise you to continue with medication as advised,give oral rehydration solution sip by sip after each loose stools,also give coconut water.curd.mashed banana.boiled potato.In case symptoms do not get better take him to pediatrician
Your son will be fine