An elastic casing
Turn the top edge under twice, or face it, so the raw edge is inside. The width of the tunnel is the elastic width plus room to slide. A tight tunnel bunches and will not feed. Thread with a bodkin or a safety pin, and do not twist. Overlap the elastic ends and sew them flat. Try the garment on. Then close the gap. Stitch in the ditch at the side seams if you want the elastic to stay put.
The bodkin page is the threading tool.
On a child's garment, read the children's waist page and the official guidance before you choose a cord. This page does not describe cords.