Both electric and magnetic fields exert body forces, meaning they act from a distance. The like charges and poles in both repel; positive charge repels positive and the north pole repels the north pole. For both, the opposite poles/charges attract. Finally, only magnetic fields have poles, and there are two poles, namely the south and north, so they are dipolar.
The diagram that represents all of this information correctly is the third.