Just as energy is stored in the magnetic field induced by a current through an inductor
(see question above,
), energy is stored in the electric field between a capacitor's plates,
.
The energy stored in the magnetic field induced by the current through the inductor gets transformed into energy stored in the electric field of the capactor, as the capacitor charges up and the current decreases (capacitor electric field increases as inductor magnetic field decreases, and vice versa).