"d county, or city or town, or the inhabitants thereof, shall be fixed, annually, by the board of supervisors, or city and county, or city or town council, or other governing body of such city and county, or city or town, by ordinance or otherwise, in the manner that other ordinances or legislative acts or resolutions are passed by such body, and shall continue In force for one year and no longer." . . . . .