Static electricity is an imbalance of electric charges within or on the surface of a material. The charge remains until it is able to move away by means of an electric current or electrical discharge. Static electricity is named in contrast with current electricity, which flows through wires or other conductors and transmits energy.
The most significant difference between the static and current electricity is that in static electricity the charges are at rest and they are accumulating on the surface of the insulator.
The magnetic field develops because of the current electricity, and it doesn’t associate in the static electricity. The static electricity exits for a short time, whereas the current electricity exists for long periods.Static Electricity Diagram