Section 14. No person shall be eligible to an elective office in the city who at the time of his election is not a qualified elector or the state or has not resided within the city for three months immediately proceeding his election.