Hi, thank you for posting your question.
Diarrhea in a 2 year old unless associated with high fever/toxic look/
blood in stool etc. is most probably benign viral.
In this case it would take about a week or so for the symptoms to resolve completely. In the mean time, as you rightly mentioned, our main concern should be preventing the child from being dehydrated.
In this case giving rehydration solutions like
ORS or home made options like lemon juice with a puch of salt/ rice water with a pinch of salt etc should suffice. This should atleast be given once with each
loose stool ( approx. a glass full) or else it may be given as many times the child demands.
Oral intake in terms for food may not be as it was in his pre illness state and this may continue for a few days. Maintaining your child's fluid intake should be your main focus.
Apart from that , if you notice any decrease in the urine output/ alteration in mental status e.g.
lethargy or irritability, or any new symptom, you need to consult the e.r.
If your child is passing urine normally and is playful, your shouldn't be worried too much.
Do get back if you have any more queries regarding the case.