Thanks for your query,
in your child is most likely antibiotic induced and will settle in few days,
I advise you to give oral rehydration solution after every loose stool
sache for 3 to 4 days.
Young child cannot expectorate sputum and it passes with stools.
Continue with medication as prescribed and in case symptoms persist get your child re evaluated by doctor.
Wishing you child good health.