If an electric current is passed through a conductor, the conductor becomes surrounded by a magnetic field Fig 1,
Fig 1
When the current is turned off the magnetic field will disappear. Fig1b
Fig
1b