Anti-seizure medications are the most common way to treat epilepsy. These medications can come in a liquid that your child can drink or a pill that your child can swallow. These medications must be taken every day, as prescribed, to prevent seizures.