J.S.
My two year old just had something similar. Threw up several times one night, then one to two times a day for several days afterwards. I got it a few days later and threw up for about half a day, was feeling much better by that night (but felt like death all morning). Take him off all dairy and just give very small amounts of pedialite or gatoraid and water. It'll go away and he'll be fine.