It differs by state. One reason and many states have this, is you have to in order the pick the candidates. In others this does not matter.
I register for the opposite party. I don’t have a political party left enough for me, however I won’t vote for the right wing parties. So I register right wing and vote against their worst candidates.
The voter registration is often public and used for planning. Again my small shift messes with their numbers.
Latest Answers