When an electric current is passed through any wire, a magnetic field is produced around it. Then why an electric iron connecting cable does not attract nearby iron objects when electric current switched on through it?
When an electric current is passed through a wire, it is true that a magnetic field is produced around it. However, such magnetic fields are very weak.
The magnetic field produced by an electric iron connecting cable is very weak and is not enough to attract nearby objects. Moreover, metallic wires of cables are shielded with a cover that prevents magnetic field to show its effect outside the cable.