Should I take him to the doctors?

My son is 10MO his been sick for about 4-5 days his had a lot of diarrhea and sometimes throw up but mostly loose diarrhea. I have giving him Pedealyte for him to stay hydrated. And that’s it. He is teething as well two teeth about to come out. Idk what to do ?