My ds1 dropped my old iPhone in a cup of tea,this is what I did
Turned it off,used a hair dryer on it on a cool setting for 10 mins then I put it in a sock and filled the sock with rice. After a day it did work again thankfully.
Don't try switching it on a lot though as it can cause more damage if it's still wet inside