Whenever the population of a city is ten thousand or more, the legislative authority thereof shall provide by ordinance for an election to be held therein for the purpose of electing fifteen freeholders for the purpose of framing a charter for the city. The members of the board of freeholders must be qualified electors and must have been residents of the city for a period of at least two years prior to their election.