Confirmed stomach viral

My 5 month old has the stomach bug we just took him to the doctor. No fever thank goodness and only experiencing some diarrhea no more pukes. Doctor said as long as he consumed half of his normal feeding he’ll be okay. I’m freaking though cause he’s refusing a bottle , nursing . I’ve been trying to syringe pedialyte into his mouth . Anyone else have advice to keep buns hydrated