In primaries, party members vote in a state election for the candidate they want to represent them in the general election. After the primaries and caucuses, each major party, Democrat and Republican, holds a national convention to select a Presidential nominee.
My deepest apologies if this is not what you meant.