How is energy stored in magnetic and electric fields? We say that there is energy associated with electric and magnetic fields. For example, in the case of an inductor, we give a vague answer saying that an energy of $\frac{1}{2} LI^2$ is stored in the magnetic field around the inductor.
For a capacitor, we say that energy is stored in the field. This is understandable as the electric field is trying to combining the charges on the plates but there exists a physical barrier separating. In other words, I can say that the energy is stored as the electric potential energy of the charges in the two plates.
What does it mean to say that there is energy associated with an inductor's magnetic fields? There aren't magnetic monopoles which are storing magnetic potential energy, but there could be magnetic dipoles which are storing the energy?
Maybe there are photons partying around in the field carrying energy (I am not serious about this comment but I am giving an idea what kind of answer I am expecting).
In my opinion, this is not a duplicate. Answers to similar questions state that work is done by the current moving in the circuit which gets stored in the fields. I understand that. This question asks how the energy is stored in the fields, not where it comes from.
 A: This is a qualitative answer:
The underlying level of nature is quantum mechanical. The classical concepts, like electric and magnetic fields, rise from this underlying level.
Take a charged capacitor. All the negative charges are on  one face and all the positive on the other and there exists a classical electric field between the plates which has energy. This energy is the potential energy which separates the quantum mechanical charges, electrons have been moved from one side to the other and ions were created, and the energy stored comes from this operation.
If one takes an electron by itself, there is a charge,  and an electric field  associated mathematically with that charge, but there is no energy to be taken or given to the single electron because the charge is intrinsic. Thus the how of ensembles which give electric fields ,ends up to the basic question at the level of a single electron getting the answer "because that is what has been observed".
This always happens with physics because it is a science that uses mathematics to fit observations, and there are basic observations that are assumed. Particle physics has codified them in standard model particle table. So one can answer this question sequentially, peeling the onion of complexity, until one reaches the basic measured facts.
A more complicated argument can be made for the magnetic field, (one has to use the concept of moving charges, an observation) and in the end the answer to the last how will again end in  the  standard model table.
A: The separation of charges for capacitors you explained by yourself. I has to explain the storage of energy in inductor coils only. 

What does it mean to say that there is energy associated with an inductor's magnetic fields?

Every electron has a magnetic dipole moment This moments in most the materials is equally distributed in space for all the electrons and cancel each other out. (Not so for magnetic materials).
Moving electrons on a curved path inducing a common magnetic field. This happens by the alignment of their magnetic dipole moments. By this the Ohm resistance of a coil is higher as the resistance of a straight wire of the same length. Switching off the current through a coil the electrons alignment gets lost again and a current is induced for a while. (The electrons get disturbed by the thermic movement of the atoms. In ultra old coils this is prevented and the electrons alignment of their magnetic dipole moments is self holding.)
