This can be shown by seeing the decrease in the deflection of the needle of the magnetic compass as it is moved away from the current carrying wire.