All elections by the city council shall be by ballot, and a majority vote of the whole council shall be necessary to an election.