Children should hear the megillah unless they are disturbing or will disturb anyone else from fulfilling the mitzvah of hearing megillah. If the parents keep them near and can make sure they won’t make noise and bang at the wrong time the children should also hear the megillah.
– Kitzur Shulchan Aruch with Mishnah Berura