Magnetic fields surround magnetic materials and electric currents and are detected by the force they exert on other magnetic materials and moving electric charges .

Magnetic fields surround electric currents , magnetic dipoles , and changing electric fields .
