A rectangular loop carrying a current ‘i’ is situated near a long straight wire such that the wire is parallel to one of the sides of the loop and is in the plane of the loop. If steady current I is established in the wire as shown in figure, the loop will
Attractive force with wire (1) is . And the repulsive force with wire (2) is
So, on a net the loop will feel net attractive force, Hence it will move towards the wire.