The commissioners shall have the authority to contract with any municipality located within the county for the holding by the board of any primary or election to be conducted within the municipality. Nothing in this Act shall be construed to require or prohibit joint primaries or elections.