Ear infections (acute otitis media) occur when a virus or bacteria infects the space behind your child’s eardrum. Symptoms include ear pain that may cause your infant or toddler to be especially fussy or irritable. Often, ear infections clear on their own. Sometimes, children need antibiotics, pain-relieving medications or ear tubes.