Actually I had posted a very similar question, but I wasn't quite satisfied with the answer so I am posting a new variety again.
Imagine an infinitely long wire carrying current $I_1$ from West to East. At a small distance $d$ above the wire there is another small current carrying wire of length $l$ carrying current $I_2$ from East to West (opposite to the direction of current in the below placed wire). Obviously they are magnetically repelling. And if the second wire (carrying current from East to West) is at rest the magnetic force must be equal to $mg$.
The magnetic force is upward and $mg$ is down. The magnetic force can be written as $$\frac{Uo I_1I_2}{2\pi d} l = mg$$ Now, if the magnetic force is greater than $mg$, the wire moves up. Now magnetic force is up and displacement is up too which means that work done by magnetic force should be positive. How is that possible when we know that work done by a magnetic force is always zero? Is it that an e.m.f. is induced which opposes the change?