How does a Presidential Caucus Work?

The caucus was how the US use to select Presidential candidates. It was essentially a meeting where anyone how was registered with that party could show up and vote.