First of all, remain calm. If possible, find the tooth and hold it by the crown rather than the root.
Replace the tooth in the socket and hold it there with clean gauze or a washcloth. If you can't put the tooth back in the socket, place the tooth in a clean container with milk and take your child and the glass immediately to the dentist.
The faster you act, the better your chances of saving the tooth.