you take a length of ordinary wire, make it into a big loop, and lay it between the poles of a powerful, permanent horseshoe magnet. Now if you connect the two ends of the wire to a battery, the wire will jump up briefly.When an electric current starts to creep along a wire, it creates a magnetic field all around it. If you place the wire near a permanent magnet, this temporary magnetic field interacts with the permanent magnet's field.