Does anyone know if you can get your CDA via online classes?

I want to achieve a Early Childhood certificate so I can work at a daycare center...is this possible? Anyone else do it? Or does anyone else have their CDA...how did you get it.